|
fmt
|
Public Types | |
| using | char_type = Char |
Public Member Functions | |
| BasicPrintfContext (BasicAppender< Char > out, BasicFormatArgs< BasicPrintfContext > args) | |
| auto | out () -> BasicAppender< Char > |
| auto | advanceTo (BasicAppender< Char >) -> void |
| auto | locale () -> LocaleRef |
| auto | arg (int id) const -> BasicFormatArg< BasicPrintfContext > |
Static Public Attributes | |
| static constexpr int | kBuiltinTypes = 1 |
The formatting context used by the printf functions.
Differs from FormatContext in that it is not locale-aware and supports only the built-in types.
| Char | the character type, char or wchar_t. |
|
inline |
Constructs a context writing to out.
| out | the output iterator to write to. |
| args | the arguments, which are stored by reference and must outlive the context. |
|
inline |
Does nothing: the appender tracks its own position.
|
inline |
Returns the argument at index id, or a monostate argument if there is none.
|
inline |
Returns an empty locale: printf formatting is not locale-aware.
|
inline |
Returns the output iterator being written to.