fmt::formatter<R, Char>

Formats a map-like range R as a {key: value, ...} sequence of its key-value pairs.

Synopsis

Declared in <fmt/ranges.h>

template<
    typename R,
    typename Char>
requires conjunction<
        bool_constant<range_format_kind<R, Char>::value == range_format::map>,
        detail::is_formattable_delayed<R, Char>>::value
struct formatter<R, Char>;

Member Functions

NameDescription
formatter [constructor]Constructs the formatter with the default {key: value, ...} layout.
format Formats map as a sequence of key: value pairs.
parse Parses the format specifier for the map and its key-value pairs. n suppresses the enclosing braces.