[container.adaptors.format] (original) (raw)
For each ofqueue,priority_queue, andstack, the library provides the following formatter specialization where adaptor-type is the name of the template:namespace std { template<class charT, class T, formattable<charT> Container, class... U> struct formatter<_adaptor-type_<T, Container, U...>, charT> { private: using maybe-const-container = fmt-maybe-const<Container, charT>;using maybe-const-adaptor = maybe-const<is_const_v<_maybe-const-container_>, adaptor-type<T, Container, U...>>; formatter<ranges::ref_view<_maybe-const-container_>, charT> underlying_; public: template<class ParseContext> constexpr typename ParseContext::iterator parse(ParseContext& ctx);template<class FormatContext> typename FormatContext::iterator format(maybe-const-adaptor& r, FormatContext& ctx) const;};}