10 ms·
That's perfect -- as easy to write and to read as printf. I feel like an idiot for not using it all these years. Edit: Oh, it's in C++23 standard. Only took
by khazhoux 3y ago
That's perfect -- as easy to write and to read as printf. I feel like an idiot for not using it all these years.
Edit: Oh, it's in C++23 standard. Only took them 38 years! ;-)
- peterashford 3y agoAgreed with you on both counts - cout was an abomination and that std::println looks great (I'd never seen it before, either)
- LaLaLand122 3y agoI doubt it's yet implemented in any standard library. But it has been in the fmt namespace for close to a decade: https://fmt.dev/ https://fmt.dev/ . I do use it in a C++11-only codebase.