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