Namespaces
Variants
Views
Actions

std::istream_iterator::operator++, operator++(int)

From cppreference.com
< cpp‎ | iterator‎ | istream iterator
Revision as of 17:04, 5 June 2013 by P12 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
istream_iterator& operator++();
(1)
istream_iterator operator++(int);
(2)

Reads a value from the underlying stream and stores it into the iterator object.

The behavior is undefined if the iterator is end-of-stream iterator.

[edit] Parameters

(none)

[edit] Return value

1) *this.
2) An istream_iterator that holds an unchanged value.

[edit] Exceptions

(none)