tinyformat::format

Format list of arguments according to the given format string and return the result as a string.

Synopsis

Declared in <tinyformat.h>

template<typename... Args>
std::string
format(
    FormatStringCheck<sizeof...(Args)> fmt,
    Args const&... args);

Return Value

The formatted result as a string.

Parameters

NameDescription
fmtFormat string, checked against the number of arguments.
argsValues to format.