Template Struct Printable

Inheritance Relationships

Base Type

Struct Documentation

template<typename TUnderlying>
struct Printable : public t8_crtp_operator<TUnderlying, Printable>

A template for printable types. Provides the << operator.

Template Parameters:

TUnderlying

Friends

inline friend std::ostream &operator<<(std::ostream &os, const TUnderlying &obj)

Print the underlying type to the output stream.

Parameters:
  • os[in] The output stream to print to.

  • obj[in] The object to print.

Returns:

The output stream after printing.