-To support writing a custom type MyClass to any kind of text-output-stream with operator<<:
-\code
-template<typename TextOutputStreamType>
-TextOutputStreamType& ostream_write(TextOutputStreamType& ostream, const MyClass& myClass)
-{
- return ostream << myClass.getName() << ' ' << myClass.getText();
-}
-\endcode
-Expressing this as a template allows it to be used directly with any concrete text-output-stream type, not just the abstract TextOutputStream\n
-\n
-This overload writes a single character to any text-output-stream - ostream_write(TextOutputStreamType& ostream, char c).
-*/
+ To support writing a custom type MyClass to any kind of text-output-stream with operator<<:
+ \code
+ template<typename TextOutputStreamType>
+ TextOutputStreamType& ostream_write(TextOutputStreamType& ostream, const MyClass& myClass)
+ {
+ return ostream << myClass.getName() << ' ' << myClass.getText();
+ }
+ \endcode
+ Expressing this as a template allows it to be used directly with any concrete text-output-stream type, not just the abstract TextOutputStream\n
+ \n
+ This overload writes a single character to any text-output-stream - ostream_write(TextOutputStreamType& ostream, char c).
+ */