Summary
This episode presents a concise overview of the best approaches for printing output in C++23. Jason recommends using puts() for simple null-terminated strings with a newline, as it's fast and clean. For formatted output, he suggests using the {fmt} library when external dependencies are allowed, or std::print/std::println from C++23's
Related C++ Standard Sections
This episode covers topics found in these sections of the C++ standard:
-
[print.fun]74% match -
[iostream.syn]59% match -
[iostream.objects]57% match -
[ostream.manip]40% match