Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1.76 KB

README.md

File metadata and controls

37 lines (25 loc) · 1.76 KB

Makes printing stuff to console in C++ is just fun! be it anything, set, map, ...

printUtil

print all kinds of stl containers to console, debug recrsion by printing recursion call stack, plug and play C++ utlity with 3 globally vailable void functions _w(), _e(), _b()

cout<< anything...(stl*)

cout<< anything...(stl*)

_w() Fnction

recursion

output _w() Fnction

recursion tree

_e() and _b() Fnction _e() and _b() Fnction

_w print_stl_operator_overloaded

function _w() : overloads << os stream operator for printing all kinds of stl containers, if nested identifies the nesting and prints inner containers recursively

or in simple words, _w() prints anything and everything that is passed inn, space separated, after spacing

  • feature: includes string spacing, that is also modified by recursive function

todo: cant print those containers initialised with custom compare functions, so, containers like : set<int, decltype(somefunction)*> cant be printed yet

recursion_utilities: _e() and _b()

functions:

recurse() or _r(): increments spacing, passes all args passed to _w()

returnrecurse() or _b(): decrements spacing, passes all args passed to _w()

these fns use verdiac macros to get the name of calling function to be printed to console.