vformat overloads
Synopses
Declared in <bslfmt_format.h>
Format args according to the specification in fmtStr.
bsl::string
vformat(
std::string_view fmtStr,
std::format_args args);
Format args according to the specification in fmtStr.
bsl::wstring
vformat(
std::wstring_view fmtStr,
std::wformat_args args);
Format args according to fmtStr using the given allocator.
bsl::string
vformat(
allocator<char> alloc,
std::string_view fmtStr,
std::format_args args);
Format args according to fmtStr using the given allocator.
bsl::wstring
vformat(
allocator<wchar_t> alloc,
std::wstring_view fmtStr,
std::wformat_args args);
Format args according to fmtStr using the given locale.
bsl::string
vformat(
std::locale const& loc,
std::string_view fmtStr,
std::format_args args);
Format args according to fmtStr using locale loc.
bsl::wstring
vformat(
std::locale const& loc,
std::wstring_view fmtStr,
std::wformat_args args);
Format args according to fmtStr using allocator and locale.
bsl::string
vformat(
allocator<char> alloc,
std::locale const& loc,
std::string_view fmtStr,
std::format_args args);
Format args according to fmtStr using allocator and locale.
bsl::wstring
vformat(
allocator<wchar_t> alloc,
std::locale const& loc,
std::wstring_view fmtStr,
std::wformat_args args);
Return Value
-
the formatted string
-
the formatted wide string
Parameters
Name |
Description |
fmtStr |
format string |
args |
type‐erased format arguments |
alloc |
allocator used to supply memory |
loc |
locale used for locale‐dependent formatting |
Created with MrDocs