Defines C++ wrapper to log/print text messages.
This API uses C++ variadic templates and type detection to make it easy to print any native type. You can even overload the [print()](#print())
method for your own custom types.
Example:
print( "hello world, this is a number: ", 5 );
Overriding Print for your TypesThere are two ways to overload print:* implement void print( const T& )
- implement T::print()const
SUMMARY
Members | Descriptions |
---|---|
public template<> inline void print_f (const char * s,Arg val,Args... rest) | Prints formatted string. |
public template<> void print (Arg && a,Args &&... args) | Print out value / list of values. |
public template<> inline iostream & operator<< (iostream & out,const T & v) | Overload c++ iostream. |
class eosio::iostream | Simulate C++ style streams |