Standard C++ Library Class Reference
Description
Stream iterators provide the standard iterator interface for input and output streams.
The class ostream_iterator writes elements to an output stream. If you use the constructor that
has a second, char * argument, then that string will be written after every element . (The string
must be null-terminated.) Since an ostream iterator is an output iterator, it is not possible to get
an element out of the iterator. You can only assign to it.
Interface
template <class T>
 class ostream_iterator : public output_iterator 
{
 public:
 ostream_iterator(ostream&);
 ostream_iterator (ostream&, const char*); 
 ostream_iterator (const ostream_iterator<T>&);
 ~ostream_itertor ();
 ostream_iterator<T>& operator=(const T&);
 ostream_iterator<T>& operator* () const;
 ostream_iterator<T>& operator++ ();
 ostream_iterator<T> operator++ (int);
 };
Constructors
ostream_iterator (ostream& s);
Construct an ostream_iterator on the given stream.
ostream_iterator (ostream& s, const char* delimiter);
Construct an ostream_iterator on the given stream. The null terminated string delimitor
is written to the stream after every element.
ostream_iterator (const ostream_iterator<T>& x);
Copy constructor.
Destructor
~ostream_iterator ();
Destructor










