Template Function fmt::v6::to_string(const T&)

Function Documentation

template<typename T>
std::string fmt::v6::to_string(const T &value)

Converts value* to std::string using the default format for type T. It doesn’t support user-defined types with custom formatters.

Example*:

#include <fmt/format.h>

std::string answer = fmt::to_string(42);