This unconstrained (value-semantic) class provides an access to the current state of the format operation and is used for testing bsl::formatter specializations.
Declared in <bslfmt_mockformatcontext.h>
template<class t_CHAR>
class MockFormatContext;
| Name | Description |
|---|---|
Arg | Type of a format argument held by this context. |
char_type | Character type used for formatting. |
formatter_type | Formatter type for values of type t_TYPE with character type t_CHAR. |
iterator | Output iterator type used by this context. |
| Name | Description |
|---|---|
MockFormatContext [constructor] | Constructors |
advance_to | Advance the output iterator to the position referred by the specified it. |
arg | Return the argument with the specified id or the default constructed object if there is no argument with such id. |
finalString | Return output string. |
out | Return this object's output iterator. |