Please take note of the updates at the end of this post.
Update: I have created a public project on GitHub for this library!
You can format containers as well as ranges and tuples using the {fmt} library. For example:
#include #include int main() { auto v = std::vector{1, 2, 3}; fmt::print("{}", v); }
prints
{1, 2, 3}
to stdout.
stdout
Disclaimer: I'm the author of {fmt}.