Support Class Library
A set of tools providing classes and utility
Namespaces | Functions
surrounded.h File Reference
#include <string>
#include <iostream>
#include <functional>
#include <scl/tools/iostream/nl.h>
#include <scl/macros.h>

Go to the source code of this file.

Namespaces

 scl
 Global namespace of the SCL.
 
 scl::tools
 General purpose tooling.
 
 scl::tools::iostream
 Namespace for the iostream oriented tools.
 
 scl::tools::iostream::log
 Logging utilities.
 
 scl::tools::iostream::log::surrounded
 Logging utils but with both prefix and suffix.
 

Functions

template<class T = std::string>
std::function< decltype(std::cout)&(const T &)> scl::tools::iostream::log::surrounded::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 &)> scl::tools::iostream::log::surrounded::error (const char *const prefix, const char *const suffix)
 Log on stderr with a prefix and a suffix, end with a line break. More...