24 Iterators library [iterators]

24.6 Stream iterators [stream.iterators]

24.6.1 Class template istream_iterator [istream.iterator]

24.6.1.2 istream_iterator operations [istream.iterator.ops]

const T& operator*() const;

Returns: value.

const T* operator->() const;

Returns: &(operator*()).

istream_iterator<T,charT,traits,Distance>& operator++();

Requires: in_stream != 0.

Effects: *in_stream >> value.

Returns: *this.

istream_iterator<T,charT,traits,Distance> operator++(int);

Requires: in_stream != 0.

Effects:

istream_iterator<T,charT,traits,Distance> tmp = *this;
*in_stream >> value;
return (tmp);

template <class T, class charT, class traits, class Distance> bool operator==(const istream_iterator<T,charT,traits,Distance> &x, const istream_iterator<T,charT,traits,Distance> &y);

Returns: x.in_stream == y.in_stream.

template <class T, class charT, class traits, class Distance> bool operator!=(const istream_iterator<T,charT,traits,Distance> &x, const istream_iterator<T,charT,traits,Distance> &y);

Returns: !(x == y)