Formats a map-like range R as a {key: value, ...} sequence of its key-value pairs.
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>;
| Name | Description |
|---|---|
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. |