{fmt} is a fast(er) and safe(r) alternative to C stdio (printf,...) and C++ iostreams (std::cout,...) that uses a Pythonesque format string syntax and is the origin and inspiration of C++20's std::format
and C++23's upcoming std::print
.
This article on hackingcpp.com offers a comprehensive and accessible overview of {fmt} with lots of runnable examples and visual aids:
- how to set it up
- quick overview of its interface and capabilities
- hierarchical, task-oriented "how-to print/format X" sections
- how to print custom types
- cheat sheets as quick reference for format specifications
Top comments (2)
Thank you, good cheat sheets :)
I like it! Great job :)