format overloads

Synopses

Declared in <bslfmt_format.h>

Format the specified args according to the specification given by the specified fmtStr and return the result as a bsl::string. In the event of an error throw the exception format_error.

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

Format the specified args according to the specification given by the specified fmtStr and return the result. In the event of an error throw the exception format_error.

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

Format the specified args according to the specification given by the specified fmtStr, using the specified alloc to supply memory (if required), and return the result. In the event of an error throw the exception format_error.

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

Format the specified args according to the specification given by the specified fmtStr, using the specified alloc to supply memory (if required), and return the result. In the event of an error throw the exception format_error.

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

Format the specified args according to the specification given by the specified fmtStr in the locale of the specified loc and return the result. In the event of an error throw the exception format_error.

template<class... t_ARGS>
bsl::string
format(
    std::locale const& loc,
    format_string<t_ARGS...> fmtStr,
    t_ARGS&&... args);

Format the specified args according to the specification given by the specified fmtStr in the locale of the specified loc and return the result. In the event of an error throw the exception format_error.

template<class... t_ARGS>
bsl::wstring
format(
    std::locale const& loc,
    wformat_string<t_ARGS...> fmtStr,
    t_ARGS&&... args);

Format the specified args according to the specification given by the specified fmtStr in the locale of the specified loc, using the specified allocator to supply memory (if required), and return the result. In the event of an error throw the exception format_error.

template<class... t_ARGS>
bsl::string
format(
    allocator<char> alloc,
    std::locale const& loc,
    format_string<t_ARGS...> fmtStr,
    t_ARGS&&... args);

Format the specified args according to the specification given by the specified fmtStr in the locale of the specified loc, using the specified allocator to supply memory (if required), and return the result. In the event of an error throw the exception format_error.

template<class... t_ARGS>
bsl::wstring
format(
    allocator<wchar_t> alloc,
    std::locale const& loc,
    wformat_string<t_ARGS...> fmtStr,
    t_ARGS&&... args);

Created with MrDocs