BloombergLP::bslfmt::formatted_size

Return the length of the string that formatting args per fmtStr yields.

Synopses

Declared in <bslfmt_format_imp.h>

Return the length of the string that formatting args per fmtStr yields.

template<class... t_ARGS>
std::size_t
formatted_size(
    bslfmt::format_string<t_ARGS...> fmtStr,
    t_ARGS const&... args);
» more...

Return the length of the string that formatting args per fmtStr yields.

template<class... t_ARGS>
std::size_t
formatted_size(
    bslfmt::wformat_string<t_ARGS...> fmtStr,
    t_ARGS const&... args);
» more...

Return Value

the number of characters in the formatted result

Parameters

NameDescription
fmtStrformat string
argsvalues to format