Template Function fmt::v6::format(const S&, Args&&…)

Function Documentation

template<typename S, typename ...Args, typename Char = char_t<S>>
std::basic_string<Char> fmt::v6::format(const S &format_str, Args&&... args)

Formats arguments and returns the result as a string.

Example*:

#include <fmt/core.h>
std::string message = fmt::format("The answer is {}", 42);