cppreference.com
Create account
Log in
Namespaces
Template
Discussion
Variants
Views
View
Edit
History
Actions
Template:cpp/iterator/istream iterator/navbar
From cppreference.com
C++
Compiler support
Freestanding and hosted
Language
Standard library
Standard library headers
Named requirements
Feature test macros
(C++20)
Language support library
Concepts library
(C++20)
Metaprogramming library
(C++11)
Diagnostics library
General utilities library
Strings library
Containers library
Iterators library
Ranges library
(C++20)
Algorithms library
Numerics library
Localizations library
Input/output library
Filesystem library
(C++17)
Regular expressions library
(C++11)
Concurrency support library
(C++11)
Execution support library
(C++26)
Technical specifications
Symbols index
External libraries
[edit]
Iterator library
Iterator concepts
indirectly_readable
(C++20)
indirectly_writable
(C++20)
weakly_incrementable
(C++20)
incrementable
(C++20)
is-integer-like
is-signed-integer-like
(C++20)
(C++20)
sentinel_for
(C++20)
sized_sentinel_for
(C++20)
input_iterator
(C++20)
output_iterator
(C++20)
input_or_output_iterator
(C++20)
forward_iterator
(C++20)
bidirectional_iterator
(C++20)
random_access_iterator
(C++20)
contiguous_iterator
(C++20)
Iterator primitives
input_iterator_tag
output_iterator_tag
forward_iterator_tag
bidirectional_iterator_tag
random_access_iterator_tag
contiguous_iterator_tag
(C++20)
iter_value_t
iter_difference_t
iter_reference_t
iter_const_reference_t
iter_rvalue_reference_t
iter_common_reference_t
(C++20)
(C++20)
(C++20)
(C++23)
(C++20)
(C++20)
iterator
(deprecated in C++17)
iterator_traits
incrementable_traits
(C++20)
indirectly_readable_traits
(C++20)
Algorithm concepts and utilities
Indirect callable concepts
indirectly_unary_invocable
indirectly_regular_unary_invocable
(C++20)
(C++20)
indirect_unary_predicate
(C++20)
indirect_binary_predicate
(C++20)
indirect_equivalence_relation
(C++20)
indirect_strict_weak_order
(C++20)
Common algorithm requirements
indirectly_movable
(C++20)
indirectly_movable_storable
(C++20)
indirectly_copyable
(C++20)
indirectly_copyable_storable
(C++20)
indirectly_swappable
(C++20)
indirectly_comparable
(C++20)
permutable
(C++20)
mergeable
(C++20)
sortable
(C++20)
Utilities
indirect_result_t
(C++20)
projected
(C++20)
projected_value_t
(C++26)
Iterator adaptors
reverse_iterator
make_reverse_iterator
(C++14)
move_iterator
(C++11)
make_move_iterator
(C++11)
default_sentinel_t
default_sentinel
(C++20)
(C++20)
unreachable_sentinel_t
unreachable_sentinel
(C++20)
(C++20)
front_insert_iterator
back_insert_iterator
inserter
insert_iterator
front_inserter
back_inserter
move_sentinel
(C++20)
common_iterator
(C++20)
counted_iterator
(C++20)
basic_const_iterator
(C++23)
const_iterator
(C++23)
const_sentinel
(C++23)
make_const_iterator
(C++23)
make_const_sentinel
(C++23)
Stream iterators
istream_iterator
ostream_iterator
istreambuf_iterator
ostreambuf_iterator
Iterator customization points
ranges::iter_move
(C++20)
ranges::iter_swap
(C++20)
Iterator operations
advance
distance
prev
(C++11)
next
(C++11)
ranges::advance
(C++20)
ranges::distance
(C++20)
ranges::prev
(C++20)
ranges::next
(C++20)
Range access
begin
cbegin
(C++11)
(C++14)
rbegin
crbegin
(C++14)
(C++14)
end
cend
(C++11)
(C++14)
rend
crend
(C++14)
(C++14)
size
ssize
(C++17)
(C++20)
empty
(C++17)
data
(C++17)
[edit]
std::istream_iterator
Member functions
istream_iterator::istream_iterator
istream_iterator::~istream_iterator
istream_iterator::operator*
istream_iterator::operator->
istream_iterator::operator++
istream_iterator::operator++(int)
Non-member functions
operator==
operator!=
(until C++20)
[edit]