Class EndOfLine

Inheritance Relationships

Base Type

Class Documentation

class EndOfLine : public ecl::Manipulator<EndOfLine>

Replicates the well known end of line/flush combination.

This replicates the well known std::endl function as an ecl class based manipulator. The library instantiates a variable of this class under the name ‘endl’, so you need only refer to ecl::streams::endl to directly use it with your streams.

See also

Manipulator.

Public Functions

template<typename ODevice>
inline void action(interfaces::OutputTextStream<ODevice, true> &ostream)

Forces an end of line character/flush combination.

Forces an end of line character/flush combination.

Template Parameters

OutputStream – : the output stream type.

Parameters

ostream – : the stream to use for manipulation.

inline virtual ~EndOfLine()