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

Synopsis

Declared in <bslfmt_format_imp.h>

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

Description

Calculate the length of the resulting string if the specified args were to be formatted according to the specification given by the specified fmtStr, and return the result.

Return Value

the number of characters in the formatted result

Parameters

Name

Description

fmtStr

wide format string

args

values to format

Created with MrDocs