Template Function ecl::operator<<
Defined in File strings.hpp
Function Documentation
-
template<typename OutputStream>
OutputStream &ecl::operator<<(OutputStream &ostream, Format<std::string> &formatter) Insertion operator for formatters. It takes a customised formatter and inserts its current context into the stream. If two formatters are used in succession, it will throw an error (c++ cannot handle two in a single line of streaming). This works on normal c++ streams as well as TextStreams.
- Parameters
ostream – : the stream to insert the formatted object into.
formatter – : the format context.
- Throws
StandardException – : throws if the formatter is used multiply in one stream operation [debug mode only].
- Returns
OutputStream : a handle to the resultant stream.