[format.range.fmtdef] (original) (raw)

28 Text processing library [text]

28.5 Formatting [format]

28.5.7 Formatting of ranges [format.range]

28.5.7.3 Class template range-default-formatter [format.range.fmtdef]

namespace std { template<ranges::input_range R, class charT> struct range-default-formatter<range_format::sequence, R, charT> { private: using maybe-const-r = fmt-maybe-const<R, charT>; range_formatter<remove_cvref_t<ranges::range_reference_t<_maybe-const-r_>>, charT> underlying_; public: constexpr void set_separator(basic_string_view<charT> sep) noexcept;constexpr void set_brackets(basic_string_view<charT> opening, basic_string_view<charT> closing) noexcept;template<class ParseContext> constexpr typename ParseContext::iterator parse(ParseContext& ctx);template<class FormatContext> typename FormatContext::iterator format(maybe-const-r& elems, FormatContext& ctx) const;};}

constexpr void set_separator(basic_string_view<charT> sep) noexcept;

Effects: Equivalent to: underlying_.set_separator(sep);

constexpr void set_brackets(basic_string_view<charT> opening, basic_string_view<charT> closing) noexcept;

Effects: Equivalent to: underlying_.set_brackets(opening, closing);

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

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

template<class FormatContext> typename FormatContext::iterator format(_maybe-const-r_& elems, FormatContext& ctx) const;

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