WPILibC++ 2024.3.2
basic_printf_context< Char > Class Template Reference

#include </home/runner/work/allwpilib/allwpilib/wpiutil/src/main/native/thirdparty/fmtlib/include/fmt/printf.h>

Public Types

using char_type = Char
 
using parse_context_type = basic_format_parse_context< Char >
 
template<typename T >
using formatter_type = printf_formatter< T >
 

Public Member Functions

 basic_printf_context (detail::buffer_appender< Char > out, basic_format_args< basic_printf_context > args)
 \rst Constructs a printf_context object. More...
 
auto out () -> detail::buffer_appender< Char >
 
void advance_to (detail::buffer_appender< Char >)
 
auto locale () -> detail::locale_ref
 
auto arg (int id) const -> basic_format_arg< basic_printf_context >
 
FMT_CONSTEXPR void on_error (const char *message)
 

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 = basic_format_parse_context<Char>

Constructor & Destructor Documentation

◆ basic_printf_context()

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

\rst Constructs a printf_context object.

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

Member Function Documentation

◆ advance_to()

template<typename Char >
void basic_printf_context< Char >::advance_to ( detail::buffer_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

◆ on_error()

template<typename Char >
FMT_CONSTEXPR void basic_printf_context< Char >::on_error ( const char *  message)
inline

◆ out()

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

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