|
|
|
|
|
by zamadatix
260 days ago
|
|
std::format in C++20 is just for the string manipulation half but you still left shift cout by the resulting string to output text in canonical C++. C++23 introduced std::print(), which is more or less the modernized printf() C++ probably should have started with and also includes the functionality of std::format(). Unfortunately, it'll be another 10 years before I can actually use it outside of home projects... but at least it's there now! |
|