BloombergLP::bslfmt::format

format overloads

Synopses

Declared in <bslfmt_format_imp.h>

Format args according to fmtStr and return a bsl::string.

template<class... t_ARGS>
bsl::string
format(
    bslfmt::format_string<t_ARGS...> fmtStr,
    t_ARGS const&... args);
» more...

Format args according to fmtStr and return a bsl::wstring.

template<class... t_ARGS>
bsl::wstring
format(
    bslfmt::wformat_string<t_ARGS...> fmtStr,
    t_ARGS const&... args);
» more...

Format args according to fmtStr using allocator alloc.

template<class... t_ARGS>
bsl::string
format(
    bsl::allocator<char> alloc,
    bslfmt::format_string<t_ARGS...> fmtStr,
    t_ARGS const&... args);
» more...

Format args according to fmtStr using allocator alloc.

template<class... t_ARGS>
bsl::wstring
format(
    bsl::allocator<wchar_t> alloc,
    bslfmt::wformat_string<t_ARGS...> fmtStr,
    t_ARGS const&... args);
» more...

Return Value

  • the formatted string
  • the formatted wide string

Parameters

NameDescription
fmtStrformat string
argsvalues to format
allocallocator used to supply memory