A format context for use by formatter::format() partial specialization.

Synopsis

Declared in <bslfmt_format_context.h>

template<
    class t_OUT,
    class t_CHAR>
class basic_format_context;

Description

It provides access to the output iterator for writing the formatted value and access to all formatting arguments.

Type Aliases

Name

Description

char_type

This typedef is an alias for the character type t_CHAR.

formatter_type

Alias for bsl::formatter specialized on t_TYPE and t_CHAR.

iterator

This typedef is an alias for the output iterator type t_OUT.

Member Functions

Name

Description

advance_to

Update the contained iterator to that specified by it.

arg

Return the formatting argument at zero‐based index id.

out

Return (by value) the contained output iterator.

Friends

Name

Description

BloombergLP::bslfmt::Format_ContextFactory

Utility factory for constructing basic_format_context objects.

Created with MrDocs