These docs are for v1.3.0. Click to read the latest docs for v1.6.

Console

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

MembersDescriptions
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::iostreamSimulate C++ style streams