SyTen

◆ format_args() [3/5]

template<typename... Args>
std::string syten::Log::format_args ( Fmt  fmt,
Args &&...  data 
)
inline

Constructs a text representation of a series of objects by calling fmt::format() using the format string stored in the first one as the format specifier.

Automatically adds a newline.

Example\n format_args(Fmt{"{} {:5} {}"}, 1, 2, "abc") returns 1 2 abc\n.
Example\n format_args(Fmt{}, 1, 2, "abc") returns 12abc\n.

References syten::format(), syten::Fmt::gen_default(), std::string::size(), and syten::Fmt::str.

+ Here is the call graph for this function: