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

istream_iterator& operator++();
(1)
istream_iterator operator++(int);
(2)

从底层流读值并存储它到迭代器对象。若读取失败,则迭代器变为流尾迭代器。

若迭代器是流尾迭代器则行为未定义。

参数

(无)

返回值

1) *this
2) 保有未更改的值的 istream_iterator

异常

可能抛出实现定义的异常。