WPILibC++ 2025.2.1
Loading...
Searching...
No Matches
basic_printf_context< Char > Class Template Reference

#include <fmt/printf.h>

Public Types

enum  { builtin_types = 1 }
 
using char_type = Char
 
using parse_context_type = parse_context<Char>
 
template<typename T >
using formatter_type = printf_formatter<T>
 

Public Member Functions

 basic_printf_context (basic_appender< Char > out, basic_format_args< basic_printf_context > args)
 Constructs a printf_context object.
 
auto out () -> basic_appender< Char >
 
void advance_to (basic_appender< Char >)
 
auto locale () -> detail::locale_ref
 
auto arg (int id) const -> basic_format_arg< basic_printf_context >
 

Member Typedef Documentation

◆ char_type

template<typename Char >
using basic_printf_context< Char >::char_type = Char

◆ formatter_type

template<typename Char >
template<typename T >
using basic_printf_context< Char >::formatter_type = printf_formatter<T>

◆ parse_context_type

template<typename Char >
using basic_printf_context< Char >::parse_context_type = parse_context<Char>

Member Enumeration Documentation

◆ anonymous enum

template<typename Char >
anonymous enum
Enumerator
builtin_types 

Constructor & Destructor Documentation

◆ basic_printf_context()

template<typename Char >
basic_printf_context< Char >::basic_printf_context ( basic_appender< Char > out,
basic_format_args< basic_printf_context< Char > > args )
inline

Constructs a printf_context object.

References to the arguments are stored in the context object so make sure they have appropriate lifetimes.

Member Function Documentation

◆ advance_to()

template<typename Char >
void basic_printf_context< Char >::advance_to ( basic_appender< Char > )
inline

◆ arg()

template<typename Char >
auto basic_printf_context< Char >::arg ( int id) const -> basic_format_arg<basic_printf_context>
inline

◆ locale()

template<typename Char >
auto basic_printf_context< Char >::locale ( ) -> detail::locale_ref
inline

◆ out()

template<typename Char >
auto basic_printf_context< Char >::out ( ) -> basic_appender<Char>
inline

The documentation for this class was generated from the following file: