BloombergLP::bslfmt::MockFormatContext

Format context for testing bsl::formatter specializations.

Synopsis

Declared in <bslfmt_mockformatcontext.h>

template<class t_CHAR>
class MockFormatContext;

Description

This unconstrained (value-semantic) class provides access to the current state of the format operation.

Type Aliases

NameDescription
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.

Member Functions

NameDescription
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.