bitz-server  2.0.1
Public Member Functions | List of all members
fmt::PrintfFormatter< Char, ArgFormatter > Class Template Reference

#include <printf.h>

Inheritance diagram for fmt::PrintfFormatter< Char, ArgFormatter >:
fmt::internal::FormatterBase

Public Member Functions

 PrintfFormatter (const ArgList &al, BasicWriter< Char > &w)
 
void format (BasicCStringRef< Char > format_str)
 

Detailed Description

template<typename Char, typename ArgFormatter = PrintfArgFormatter<Char>>
class fmt::PrintfFormatter< Char, ArgFormatter >

This template formats data and writes the output to a writer.

Constructor & Destructor Documentation

◆ PrintfFormatter()

template<typename Char, typename ArgFormatter = PrintfArgFormatter<Char>>
fmt::PrintfFormatter< Char, ArgFormatter >::PrintfFormatter ( const ArgList al,
BasicWriter< Char > &  w 
)
inlineexplicit

Constructs a PrintfFormatter object. References to the arguments and the writer are stored in the formatter object so make sure they have appropriate lifetimes.

Member Function Documentation

◆ format()

template<typename Char , typename AF >
void fmt::PrintfFormatter< Char, AF >::format ( BasicCStringRef< Char >  format_str)

Formats stored arguments and writes the output to the writer.