Namespaces
Variants
Views
Actions

std::istream_iterator<T,CharT,Traits,Distance>::operator++, operator++(int)

From cppreference.com
 
 
Iterator library
Iterator concepts
Iterator primitives
Algorithm concepts and utilities
Indirect callable concepts
Common algorithm requirements
Utilities
(C++20)
Iterator adaptors
Stream iterators
Iterator customization points
Iterator operations
(C++11)
(C++11)
Range access
(C++11)(C++14)
(C++11)(C++14)
(C++17)(C++20)
(C++14)(C++14)
(C++14)(C++14)
(C++17)
(C++17)
 
std::istream_iterator
Member functions
istream_iterator::operator++istream_iterator::operator++(int)
Non-member functions
 
istream_iterator& operator++();
(1)
istream_iterator operator++(int);
(2)

Reads a value from the underlying stream and stores it into the iterator object. If the read fails, the iterator becomes the end-of-stream iterator.

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

May throw implementation-defined exceptions.