Standard C++ Library Reference ISO/IEC (VERSION3)

};
The template class describes an output iterator object. It inserts objects of class Ty into an output
stream, which it accesses via an object it stores, of type pointer to basic_ostream<Elem, Tr>.
It also stores a pointer to a delimiter string, a null-terminated string of elements of type Elem, which
is appended after each insertion. (Note that the string itself is not copied by the constructor.
ostream_iterator::char_type
typedef Elem char_type;
The type is a synonym for the template parameter Elem.
ostream_iterator::operator*
ostream_iterator<Ty, Elem, Tr>& operator*();
The operator returns *this.
ostream_iterator::operator++
ostream_iterator<Ty, Elem, Tr>& operator++();
ostream_iterator<Ty, Elem, Tr> operator++(int);
The operators both return *this.
ostream_iterator::operator=
ostream_iterator<Ty, Elem, Tr>& operator=(const Ty& val);
The operator inserts val into the output stream associated with the object, then returns *this.
ostream_iterator::ostream_iterator
ostream_iterator(ostream_type& ostr);
ostream_iterator(ostream_type& ostr, const Elem *delim);
The first constructor initializes the output stream pointer with &ostr. The delimiter string pointer
designates an empty string. The second constructor initializes the output stream pointer with &ostr
and the delimiter string pointer with delim.
ostream_iterator::ostream_type
typedef basic_ostream<Elem, Tr> ostream_type;
The type is a synonym for basic_ostream<Elem, Tr>.