Support Class Library
A set of tools providing classes and utility
Functions
toString.h File Reference
#include <iostream>
#include <string>
#include <utility>
#include <scl/macros.h>
#include <scl/tools/meta/enable_if.h>
#include <scl/tools/meta/void_t.h>
#include <scl/tools/meta/defines_scl_to_string.h>
#include <scl/tools/meta/defines_ostream_operator.h>
#include <scl/tools/meta/is_convertible.h>
#include <scl/tools/meta/type_mod.h>
#include <scl/utils/toString.h>

Go to the source code of this file.

Functions

template<class T , class T_ = scl::tools::meta ::decay_t<T>, class = scl::tools::meta ::void_t< scl::tools::meta ::enable_if_t< !( scl::tools::meta ::is_same<T_, char>() || scl::tools::meta ::is_same<T_, const char*>() || scl::tools::meta ::is_same<T_, std::string>() || scl::tools::meta ::defines_ostream_operator<T_>() ) && scl::tools::meta::defines_scl_to_string<T>() >>>
std::ostream & operator<< (std::ostream &os, T &&obj)
 Automatically define the ostream operator<< when scl::utils::ToString is specialized. More...
 

Function Documentation

◆ operator<<()

template<class T , class T_ = scl::tools::meta ::decay_t<T>, class = scl::tools::meta ::void_t< scl::tools::meta ::enable_if_t< !( scl::tools::meta ::is_same<T_, char>() || scl::tools::meta ::is_same<T_, const char*>() || scl::tools::meta ::is_same<T_, std::string>() || scl::tools::meta ::defines_ostream_operator<T_>() ) && scl::tools::meta::defines_scl_to_string<T>() >>>
std::ostream& operator<< ( std::ostream &  os,
T &&  obj 
)

Automatically define the ostream operator<< when scl::utils::ToString is specialized.

Template Parameters
Tbeing the value type to output
Parameters
osbeing the output stream
objthe object to output on the output stream
Returns
a reference to the output stream

Definition at line 35 of file toString.h.