bsl::vformat

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

Format args according to the specification in fmtStr.

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

Format args according to fmtStr using the given allocator.

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

Format args according to fmtStr using the given allocator.

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

Format args according to fmtStr using the given locale.

bsl::string
vformat(
    std::locale const& loc,
    std::string_view fmtStr,
    std::format_args args);
» more...

Format args according to fmtStr using locale loc.

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

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

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

Return Value

  • the formatted string
  • the formatted wide string

Parameters

NameDescription
fmtStrformat string
argstype-erased format arguments
allocallocator used to supply memory
loclocale used for locale-dependent formatting