I was wondering if there was anyway I could overload std::cout << std::endl; for the endl to not only make a newline but also print a '-' where the newline is supposed to be and then print another newline.
Like if I did std::cout << std::endl << '-' << std::endl;
So I assume I must overload << but I'm not sure where to go from there for it to work with endl.
How about defining your own function (or function template) that is akin to
std::endl:Usage example:
Output: