I use about 6 different C++ containers. I started writing print functions to output the container contents. Is this necessary? I would think this is part of the C++ library?<
What about:
#include
#include
You might also be charmed about Boost Spirit Karma:
#include
using boost::spirit::karma::format;
using boost::spirit::karma::auto_;
int main()
{
std::vector ints(1000);
std::map pairs();
// ...
std::cout << format(auto_ % " ", ints) << std::endl;
std::cout << format(('[' << auto_ << ',' << ']') % " ", pairs) << std::endl;
}