A formatting context.

Synopsis

Declared in <fmt/base.h>

class context;

Type Aliases

Name

Description

char_type

The character type for the output.

format_arg

The type of a single type‐erased formatting argument.

iterator

The type of an iterator into the output range.

Enums

Name

Description

Unnamed enum

The bitmask of argument types this context can format without falling back to the unpacked representation.

Member Functions

Name

Description

context [constructor]

Constructors

operator= [deleted]

Copy assignment is disabled; context references its arguments and is not meant to be duplicated.

advance_to

Advances the begin iterator to it. This is a no‐op since context does not track a begin iterator separately from out_.

arg

arg overloads

arg_id

Returns the id of the named argument with the specified name.

args

Returns the type‐erased arguments being formatted.

locale

Returns the locale associated with this context.

out

Returns an iterator to the beginning of the output range.

Created with MrDocs