DOKK / manpages / debian 12 / libstdc++-11-doc / std::istream_iterator.3cxx.en
std::istream_iterator< _Tp, _CharT, _Traits, _Dist >(3cxx) std::istream_iterator< _Tp, _CharT, _Traits, _Dist >(3cxx)

std::istream_iterator< _Tp, _CharT, _Traits, _Dist > - Provides input iterator semantics for streams.

#include <stream_iterator.h>

Inherits std::iterator< input_iterator_tag, _Tp, ptrdiff_t, const _Tp *, const _Tp & >.


typedef _CharT char_type
typedef ptrdiff_t difference_type
Distance between iterators is represented as this type. typedef basic_istream< _CharT, _Traits > istream_type
typedef input_iterator_tag iterator_category
One of the tag types. typedef const _Tp * pointer
This type represents a pointer-to-value_type. typedef const _Tp & reference
This type represents a reference-to-value_type. typedef _Traits traits_type
typedef _Tp value_type
The type 'pointed to' by the iterator.


constexpr istream_iterator ()
Construct end of input stream iterator. istream_iterator (const istream_iterator &__obj)
istream_iterator (istream_type &__s)
Construct start of input stream iterator. const _Tp & operator* () const
istream_iterator & operator++ ()
istream_iterator operator++ (int)
const _Tp * operator-> () const
istream_iterator & operator= (const istream_iterator &)=default


bool operator!= (const istream_iterator &__x, const istream_iterator &__y)
Return true if the iterators refer to different streams, or if one is at end-of-stream and the other is not. bool operator== (const istream_iterator &__x, const istream_iterator &__y)
Return true if the iterators refer to the same stream, or are both at end-of-stream.

class std::istream_iterator< _Tp, _CharT, _Traits, _Dist >"Provides input iterator semantics for streams.

Definition at line 49 of file stream_iterator.h.

Definition at line 53 of file stream_iterator.h.

Distance between iterators is represented as this type.

Definition at line 134 of file stl_iterator_base_types.h.

Definition at line 55 of file stream_iterator.h.

One of the tag types.

Definition at line 130 of file stl_iterator_base_types.h.

This type represents a pointer-to-value_type.

Definition at line 136 of file stl_iterator_base_types.h.

This type represents a reference-to-value_type.

Definition at line 138 of file stl_iterator_base_types.h.

Definition at line 54 of file stream_iterator.h.

The type 'pointed to' by the iterator.

Definition at line 132 of file stl_iterator_base_types.h.

Construct end of input stream iterator.

Definition at line 67 of file stream_iterator.h.

template<typename _Tp , typename _CharT = char, typename _Traits = char_traits<_CharT>, typename _Dist = ptrdiff_t> std::istream_iterator< _Tp, _CharT, _Traits, _Dist >::istream_iterator (istream_type & __s) [inline]

Construct start of input stream iterator.

Definition at line 71 of file stream_iterator.h.

template<typename _Tp , typename _CharT = char, typename _Traits = char_traits<_CharT>, typename _Dist = ptrdiff_t> std::istream_iterator< _Tp, _CharT, _Traits, _Dist >::istream_iterator (const istream_iterator< _Tp, _CharT, _Traits, _Dist > & __obj) [inline]

Definition at line 75 of file stream_iterator.h.

Definition at line 93 of file stream_iterator.h.

template<typename _Tp , typename _CharT = char, typename _Traits = char_traits<_CharT>, typename _Dist = ptrdiff_t> istream_iterator & std::istream_iterator< _Tp, _CharT, _Traits, _Dist >::operator++ () [inline]

Definition at line 105 of file stream_iterator.h.

template<typename _Tp , typename _CharT = char, typename _Traits = char_traits<_CharT>, typename _Dist = ptrdiff_t> istream_iterator std::istream_iterator< _Tp, _CharT, _Traits, _Dist >::operator++ (int) [inline]

Definition at line 115 of file stream_iterator.h.

Definition at line 102 of file stream_iterator.h.

Return true if the iterators refer to different streams, or if one is at end-of-stream and the other is not.

Definition at line 153 of file stream_iterator.h.

Return true if the iterators refer to the same stream, or are both at end-of-stream.

Definition at line 147 of file stream_iterator.h.

Generated automatically by Doxygen for libstdc++ from the source code.

Thu Feb 16 2023 libstdc++