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);
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);
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);
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);
Parameters
Name |
Description |
out |
address of the string receiving formatted characters |
fmtStr |
format string |
args |
values to format |
loc |
locale used for locale‐dependent formatting |
Created with MrDocs