Files
2025-10-25 03:02:53 +03:00

2.0 KiB

[format.range.fmtset]

28 Text processing library [text]

28.5 Formatting [format]

28.5.7 Formatting of ranges [format.range]

28.5.7.5 Specialization of range-default-formatter for sets [format.range.fmtset]

🔗

namespace std {template<ranges::input_range R, class charT>struct range-default-formatter<range_format::set, R, charT> {private:using maybe-const-set = fmt-maybe-const<R, charT>; // exposition only range_formatter<remove_cvref_t<ranges::range_reference_t<maybe-const-set>>, charT> underlying_; // exposition onlypublic:constexpr range-default-formatter(); templateconstexpr typename ParseContext::iterator parse(ParseContext& ctx); templatetypename FormatContext::iterator format(maybe-const-set& r, FormatContext& ctx) const; };}

🔗

constexpr range-default-formatter();

1

#

Effects: Equivalent to:underlying_.set_brackets(STATICALLY-WIDEN("{"), STATICALLY-WIDEN("}"));

🔗

template<class ParseContext> constexpr typename ParseContext::iterator parse(ParseContext& ctx);

2

#

Effects: Equivalent to: return underlying_.parse(ctx);

🔗

template<class FormatContext> typename FormatContext::iterator format(maybe-const-set& r, FormatContext& ctx) const;

3

#

Effects: Equivalent to: return underlying_.format(r, ctx);