Template Function ecl::interfaces::operator<<(OutputStream&, FormatNumber<N>&)

Function Documentation

template<typename OutputStream, typename N>
OutputStream &ecl::interfaces::operator<<(OutputStream &ostream, FormatNumber<N> &formatter)

Friend function which allows a stream to act on the formatter to produce the formatted result. This works on normal c++ streams as well as TextStreams.

Parameters
  • ostream – : the stream.

  • formatter – : the formatter with prespecified format parameters and input value.

Throws

StandardException – : throws if the formatter is used multiply in one stream operation [debug mode only].

Returns

OutputStream& : return the stream that was utilised.