This is a collection of useful C++ stuff
3rd_party
Here I have useful stuff I found on the internet that I use.
- termcolor.hpp can be used to change the parameters of the code which is printed to console.
std::string s = "Hello, world!"; std::cout << termcolor::reset << "s: " << termcolor::green << s << "." << endl;
- backward.hpp generates useful backtraces on errors.
#define BACKWARD_HAS_DW 1 #include "backward.hpp" namespace backward { backward::SignalHandling sh; } // namespace backward
- icecream.hpp make print-debug easier.