Converts the contents of buf to a std::string.
Declared in <fmt/format.h>
template<size_t SIZE>
[[nodiscard]]
std::string
to_string(basic_memory_buffer<char, SIZE> const& buf);
A std::string containing a copy of the buffer's contents.
The return value should not be discarded.
| Name | Description |
|---|---|
| buf | The buffer to convert. |