Standard C++ Library Class Reference

Construct an istream_iterator on the given stream.
istream_iterator (const istream_iterator<T, Distance>& x);
Copy constructor.
Destructors
~istream_iterator ();
Destructor.
Operators
const T&
operator* () const;
Return the current value stored by the iterator.
const T*
operator-> () const;
Return a poinster to the current value stored by the iterator.
istream_iterator<T, Distance>&
operator++ ()
istream_iterator<T, Distance>
operator++ (int)
Retrieve the next element from the input stream.
Non-member Operators
bool
operator== (const istream_iterator<T, Distance>& x,
const istream_iterator<T, Distance>& y)
Equality operator. Returns true if x is the same as y.
Example
//
// io_iter.cpp
//
#include <iterator>
#include <vector>
#include <numeric>
#include <iostream.h>
int main ()