fmt::format

format overloads

Synopses

Declared in <fmt/color.h>

Formats args according to specifications in fmt and returns the result as a string.

template<typename... T>
[[nodiscard, always_inline]]
std::string
format(
    format_string<T...> fmt,
    T...&&... args);
» more...
template<typename... T>
std::wstring
format(
    wformat_string<T...> fmt,
    T...&&... args);
» more...
template<
    typename S,
    typename... T>
[[always_inline]]
constexpr
std::basic_string<S::char_type>
format(
    S const&,
    T...&&... args);
» more...
template<
    typename CompiledFormat,
    typename... T,
    typename Char = CompiledFormat::char_type>
[[always_inline]]
constexpr
std::basic_string<Char>
format(
    CompiledFormat const& cf,
    T const...&... args);
» more...
template<
    typename S,
    typename... T,
    typename Char = /* implementation-defined */>
std::basic_string<Char>
format(
    S const& fmt,
    T...&&... args);
» more...
template<typename... T>
[[always_inline]]
std::string
format(
    locale_ref loc,
    format_string<T...> fmt,
    T...&&... args);
» more...

Formats arguments and returns the result as a string using ANSI escape sequences to specify text formatting.

template<typename... T>
std::string
format(
    text_style ts,
    format_string<T...> fmt,
    T...&&... args);
» more...
template<typename... T>
std::wstring
format(
    text_style ts,
    wformat_string<T...> fmt,
    T...&&... args);
» more...
template<
    typename S,
    typename... T,
    typename Char = /* implementation-defined */>
std::basic_string<Char>
format(
    locale_ref loc,
    S const& fmt,
    T...&&... args);
» more...

Created with MrDocs