TBTK
Need a break? Support the development by playing Polarity Puzzles
Streamable.h File Reference

Abstract base class for classes that can be written to a stream. More...

#include <string>

Go to the source code of this file.

Classes

class  TBTK::Streamable
 

Functions

std::ostream & TBTK::operator<< (std::ostream &stream, const Streamable &streamable)
 

Detailed Description

Abstract base class for classes that can be written to a stream.

Author
Kristofer Björnson

Function Documentation

◆ operator<<()

std::ostream& TBTK::operator<< ( std::ostream &  stream,
const Streamable streamable 
)
inline

Writes the Streamables toString()-representation to a stream.

Parameters
streamThe stream to write to.
streamableThe streamable to write.