Support Class Library
A set of tools providing classes and utility
|
Logging utils but with both prefix and suffix. More...
Functions | |
template<class T = std::string> | |
std::function< decltype(std::cout)&(const T &)> | log (const char *const prefix, const char *const suffix) |
Log on stdout with a prefix and a suffix, end with a line break. More... | |
template<class T = std::string> | |
std::function< decltype(std::cerr)&(const T &)> | error (const char *const prefix, const char *const suffix) |
Log on stderr with a prefix and a suffix, end with a line break. More... | |
Logging utils but with both prefix and suffix.
|
inline |
Log on stderr with a prefix and a suffix, end with a line break.
T | being the type of objects to log |
prefix | being the logging prefix |
suffix | being the logging suffix |
Definition at line 43 of file surrounded.h.
|
inline |
Log on stdout with a prefix and a suffix, end with a line break.
T | being the type of objects to log |
prefix | being the logging prefix |
suffix | being the logging suffix |
Definition at line 28 of file surrounded.h.