The format context implementation used for output iterators other than appender, type‐erasing the output iterator and character types.

Synopsis

Declared in <fmt/format.h>

template<
    typename OutputIt,
    typename Char>
class generic_context;

Type Aliases

Name

Description

char_type

The format string code unit type.

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

generic_context [constructor]

Constructors

operator= [deleted]

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

advance_to

Advances the output iterator to it, unless the iterator is a back‐insert iterator, which already tracks the container's end.

arg

arg overloads

arg_id

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

locale

Returns the locale associated with this context.

out

Returns an iterator to the beginning of the output range.

Created with MrDocs