|
fmt
|
A Formatter for ranges, writing the elements between brackets and separated by a separator.
Derive a Formatter specialization from this to format a custom range, and use set_separator, set_brackets and underlying to configure the output:
template <> struct fmt::Formatter<my_range>
: fmt::RangeFormatter<int> {
Formatter() { setBrackets("<", ">"); }
};
| T | the element type, which must itself be formattable. |
| Char | the character type. |