DEV Community

Discussion on: How do I use variable-arguments (varargs) in C++ (effectively)?

 
baenencalin profile image
Calin Baenen

I'd say I got a bit carried away with trying to find a "best" way of string-formatting, and as of C++20, I found it std::format -- That's essentially everything I want and all I need.

I tried looking for how to format strings in C++ before, but this never really came up to surface (I use DuckDuckGo). All I get is stringstream and snprintf/printf solutions.