BloombergLP::bslfmt::vformat

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);
» more...

Format args according to the specification in fmtStr.

bsl::wstring
vformat(
    std::wstring_view fmtStr,
    wformat_args args);
» more...

Format args according to fmtStr using the given allocator.

bsl::string
vformat(
    bsl::allocator<char> alloc,
    std::string_view fmtStr,
    format_args args);
» more...

Format args according to fmtStr using the given allocator.

bsl::wstring
vformat(
    bsl::allocator<wchar_t> alloc,
    std::wstring_view fmtStr,
    wformat_args args);
» more...

Return Value

  • the formatted string
  • the formatted wide string

Parameters

NameDescription
fmtformat string
argstype-erased format arguments
fmtStrwide format string
allocallocator used to supply memory