20 General utilities library [utilities]

20.20 Formatting [format]

20.20.4 Class template basic-format-string [format.fmt.string]

template<class charT, class... Args> struct basic-format-string { // exposition only private: basic_string_view<charT> str; // exposition only public: template<class T> consteval basic-format-string(const T& s); };
template<class T> consteval basic-format-string(const T& s);
Constraints: const T& models convertible_­to<basic_­string_­view<charT>>.
Effects: Direct-non-list-initializes str with s.
Remarks: A call to this function is not a core constant expression ([expr.const]) unless there exist args of types Args such that str is a format string for args.