std::istream_iterator(3cxx)

std::istream_iterator3cxx

Provides input iterator semantics for streams.

Usage

#include <iterator>

Inherits std::iterator< _Category, _Tp, _Distance, _Pointer, _Reference >.

Public Types

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

Public Member Functions

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

Friends

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.

Detailed Description

template<typename _Tp, typename _CharT = char, typename _Traits = char_traits<_CharT>, typename _Dist = ptrdiff_t>

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

Member Typedef Documentation

template<typename _Category , typename _Tp , typename _Distance = ptrdiff_t, typename _Pointer = _Tp*, typename _Reference = _Tp&> typedef _Distance std::iterator< _Category, _Tp, _Distance, _Pointer, _Reference >::difference_type [inherited]

Distance between iterators is represented as this type.

template<typename _Category , typename _Tp , typename _Distance = ptrdiff_t, typename _Pointer = _Tp*, typename _Reference = _Tp&> typedef _Category std::iterator< _Category, _Tp, _Distance, _Pointer, _Reference >::iterator_category [inherited]

One of the tag types.

template<typename _Category , typename _Tp , typename _Distance = ptrdiff_t, typename _Pointer = _Tp*, typename _Reference = _Tp&> typedef _Pointer std::iterator< _Category, _Tp, _Distance, _Pointer, _Reference >::pointer [inherited]

This type represents a pointer-to-value_type.

template<typename _Category , typename _Tp , typename _Distance = ptrdiff_t, typename _Pointer = _Tp*, typename _Reference = _Tp&> typedef _Reference std::iterator< _Category, _Tp, _Distance, _Pointer, _Reference >::reference [inherited]

This type represents a reference-to-value_type.

template<typename _Category , typename _Tp , typename _Distance = ptrdiff_t, typename _Pointer = _Tp*, typename _Reference = _Tp&> typedef _Tp std::iterator< _Category, _Tp, _Distance, _Pointer, _Reference >::value_type [inherited]

The type 'pointed to' by the iterator.

Constructor & Destructor Documentation

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

Construct end of input stream 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 (istream_type & __s) [inline]

Construct start of input stream iterator.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 7 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10
  6. 11
  7. 12
  8. 13

Author

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

From libstdc++-12-doc 12.4.0-5 in Debian 13 (Trixie). Also shipped by libstdc++-13-doc, libstdc++-14-doc. Parsed by carta from the page's man source.