bsl::format_to

format_to overloads

Synopses

Declared in <bslfmt_format.h>

Format args per fmtStr into the string addressed by out.

template<
    class t_STRING,
    class... t_ARGS>
requires (bsl::is_same_v<t_STRING, bsl::string>)
void
format_to(
    t_STRING* out,
    format_string<t_ARGS...> fmtStr,
    t_ARGS&&... args);
» more...

Format args per fmtStr into the string addressed by out.

template<
    class t_STRING,
    class... t_ARGS>
requires (bsl::is_same_v<t_STRING, bsl::wstring>)
void
format_to(
    t_STRING* out,
    wformat_string<t_ARGS...> fmtStr,
    t_ARGS&&... args);
» more...

Format args per fmtStr into out using locale loc.

template<
    class t_STRING,
    class... t_ARGS>
requires (bsl::is_same_v<t_STRING, bsl::string>)
void
format_to(
    t_STRING* out,
    std::locale const& loc,
    format_string<t_ARGS...> fmtStr,
    t_ARGS&&... args);
» more...

Format args per fmtStr into out using locale loc.

template<
    class t_STRING,
    class... t_ARGS>
requires (bsl::is_same_v<t_STRING, bsl::wstring>)
void
format_to(
    t_STRING* out,
    std::locale const& loc,
    wformat_string<t_ARGS...> fmtStr,
    t_ARGS&&... args);
» more...

Parameters

NameDescription
outaddress of the string receiving formatted characters
fmtStrformat string
argsvalues to format
loclocale used for locale-dependent formatting