Jasper
Jasper

Reputation: 719

C++ datastructure (standard library) dump (like the python print function)

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

Answers (1)

juanchopanza
juanchopanza

Reputation: 227468

See here and here for pretty printing standard library containers.

Upvotes: 1

Related Questions