C++ Standard Library ostream_iterator() Sample

Description

ostream_iterator() is used to convert iterator write operations into output operations on an ostream. This means that it is possible to write to an output stream, as the result of an operation that writes an output sequence to an iterator.

Declaration

	template <class T, class Ch, class Tr = char_traits<Ch> >
	    class ostream_iterator : public iterator;

Concept

The sample program sets up a string of characters, and writes a reversed copy of the characters to the output stream.

Supported
Supported
Supported