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);

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);

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);

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);

Return Value

  • the formatted string

  • the formatted wide string

Parameters

Name

Description

fmtStr

format string

args

values to format

alloc

allocator used to supply memory

Created with MrDocs