pprint: Pretty Printer for Modern C++
Simply set
If you compile with
then pprint will print the name of the enum for you (thanks to magic_enum)
pprint also supports compact printing of containers. Simply call to enable this:
Support for associative containers includes pretty printing of , , , , , , and ,
pprint can print container adaptors including , and . Here’s an example print of a priority queue:
pprint print class objects with or without an overloaded operator
If an operator is available, pprint will use it to print your object:
The project is available under the MIT license.
Source: github.com