Template Function fmt::v6::sprintf

Function Documentation

template<typename S, typename ...Args, typename Char = enable_if_t<internal::is_string<S>::value, char_t<S>>>
std::basic_string<Char> v6::fmt::sprintf(const S &format, const Args&... args)

Formats arguments and returns the result as a string.

Example*:

std::string message = fmt::sprintf("The answer is %d", 42);