C++ format
How to get fprintf results as a std::string w/o sprintf - SO
see also
-
Formatting Text in C++: The Old and The New Ways/HN - speed comparison of available methods. - format/{fmt} seem to be generally much better.
-
{fmt} an open-source formatting library providing a fast and safe alternative to C stdio and C++ iostreams.
- see Motivations
- header-only mode
- Implementation of C++20 std::format
- Honey, I shrunk {fmt} / HN - show generating code size equivalent to call to printf
C++20
Written on September 30, 2022, Last update on September 1, 2024
c++
string
format
single-header