fmt::vsprintf

Formats args according to specifications in fmt and returns the result as a string.

Synopsis

Declared in <fmt/printf.h>

template<typename Char>
std::basic_string<Char>
vsprintf(
    basic_string_view<Char> fmt,
    vprintf_args<Char>::type args);

Return Value

The formatted string.

Parameters

NameDescription
fmtThe format string.
argsThe type-erased arguments to format.