24 template <
class T=std::
string>
25 inline std::function<decltype(std::cout)&(const T&)>
log(
realConst(
char*) prefix){
26 decltype(std::cout)* cout = &std::cout;
27 return [=](
const T& value) -> decltype(std::cout)&{
28 return (*cout) << prefix << value <<
nl;
38 template <
class T=std::
string>
39 inline std::function<decltype(std::cerr)&(const T&)>
error(
realConst(
char*) prefix){
40 decltype(std::cerr)* cerr = &std::cerr;
41 return [=](
const T& value) -> decltype(std::cerr)&{
42 return (*cerr) << prefix << value <<
nl;
Global namespace of the SCL.