Reputation: 719
When I'm programming in python it's very convenient to just print whatever datastructure you want to inspect on the screen. Does there exist something like this in C++ for STL datastructures?
It should recurse on the contents of the datastructure and print it with some specific layout for sets, maps, pairs, ..
Upvotes: 1
Views: 918
Reputation: 227468
See here and here for pretty printing standard library containers.
Upvotes: 1