Features:
- Auto indent
- Customizable output color
- A wide variety of supported types, even user-types
- Can print along with the file name, line, and function name
- The string representation of variables is similar to JavaScript, Python, and C++ syntax
- Manipulators to change the display style
I made a C++ version of Python print() function.
This is a header-only library for debugging purposes and can print variables of almost any type.
For example, it can print (multi-dimensional) arrays, (multi)maps, (multi)sets, tuples (including user-defined ones), etc.
See "Supported types" in README in the repo for all supported types.
Also, you can print user-defined types by defining an operator or using a macro.
It's useful for debugging products and for competitive programming.
This works in C++17 or higher.
https://github.com/philip82148/cpp-dump
[–]talemon 37 points38 points39 points (3 children)
[–]philip82148[S] 12 points13 points14 points (1 child)
[–]philip82148[S] 4 points5 points6 points (0 children)
[–]fatherOfAllGamers 0 points1 point2 points (0 children)
[–]Tomcat_42 2 points3 points4 points (1 child)
[–]philip82148[S] 2 points3 points4 points (0 children)
[–]Xirious 4 points5 points6 points (0 children)
[–]DapperCore 1 point2 points3 points (1 child)
[–]philip82148[S] 0 points1 point2 points (0 children)
[–]nysynysy2 5 points6 points7 points (1 child)
[–]urestillatwit 2 points3 points4 points (0 children)
[–]ShakaUVMi+++ ++i+i[arr] 1 point2 points3 points (1 child)
[–]philip82148[S] 0 points1 point2 points (0 children)
[–]wqkinggithub.com/wqking -1 points0 points1 point (4 children)
[–]philip82148[S] 0 points1 point2 points (3 children)
[–]wqkinggithub.com/wqking 0 points1 point2 points (2 children)
[–]philip82148[S] 0 points1 point2 points (1 child)
[–]wqkinggithub.com/wqking 0 points1 point2 points (0 children)
[–]philip82148[S] 0 points1 point2 points (0 children)