std::istream_iterator< _Tp, _CharT, _Traits, _Dist >(3) Library Functions Manual std::istream_iterator< _Tp, _CharT, _Traits, _Dist >(3)

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

#include <iterator>

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 pointedto"bytheiterator.


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


bool operator== (const istream_iterator &__x, const istream_iterator &__y) noexcept
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.

Distance between iterators is represented as this type.

One of the tag types.

This type represents a pointer-to-value_type.

This type represents a reference-to-value_type.

The type "pointed to" by the iterator.

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

Construct end of input stream iterator.

Referenced by operator==.

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.

References std::__addressof().

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

References istream_iterator().

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

libstdc++