man std::istream_iterator (Fonctions bibliothèques) - Provides input iterator semantics for streams.

NAME

std::istream_iterator - Provides input iterator semantics for streams.

SYNOPSIS



#include <iterator>

Inherits std::iterator< input_iterator_tag, Type, Dist, const Type *, const Type & >.

Public Types

typedef CharT char_type

typedef Traits traits_type

typedef basic_istream< CharT, Traits > istream_type

typedef input_iterator_tag iterator_category

One of the tag types. typedef Type value_type

The type 'pointed to' by the iterator. typedef Dist difference_type

Distance between iterators is represented as this type. typedef const Type * pointer

This type represents a pointer-to-value_type. typedef const Type & reference

This type represents a reference-to-value_type.

Public Member Functions

istream_iterator ()

Construct end of input stream iterator. istream_iterator (istream_type &s)

Construct start of input stream iterator. istream_iterator (const istream_iterator &__obj)

const Type & operator * () const

const Type * operator-> () const

istream_iterator & operator++ ()

istream_iterator operator++ (int)

bool M_equal (const istream_iterator &x) const

Private Member Functions

void M_read ()

Private Attributes

istream_type * M_stream

Type M_value

bool M_ok

Detailed Description

template<typename Type, typename CharT = char, typename Traits = char_traits<CharT>, typename Dist = ptrdiff_t> class std::istream_iterator< Type, CharT, Traits, Dist >

Provides input iterator semantics for streams.

Definition at line 47 of file iterator.

Member Typedef Documentation

typedef Dist std::iterator< input_iterator_tag , Type , Dist , const Type * , const Type & >::difference_type [inherited]

Distance between iterators is represented as this type.

Definition at line 113 of file stl_iterator_base_types.h.

typedef input_iterator_tag std::iterator< input_iterator_tag , Type , Dist , const Type * , const Type & >::iterator_category [inherited]

One of the tag types.

Definition at line 109 of file stl_iterator_base_types.h.

typedef const Type * std::iterator< input_iterator_tag , Type , Dist , const Type * , const Type & >::pointer [inherited]

This type represents a pointer-to-value_type.

Definition at line 115 of file stl_iterator_base_types.h.

typedef const Type & std::iterator< input_iterator_tag , Type , Dist , const Type * , const Type & >::reference [inherited]

This type represents a reference-to-value_type.

Definition at line 117 of file stl_iterator_base_types.h.

typedef Type std::iterator< input_iterator_tag , Type , Dist , const Type * , const Type & >::value_type [inherited]

The type 'pointed to' by the iterator.

Definition at line 111 of file stl_iterator_base_types.h.

Constructor & Destructor Documentation

template<typename Type, typename CharT = char, typename Traits = char_traits<CharT>, typename Dist = ptrdiff_t> std::istream_iterator< Type, CharT, Traits, Dist >::istream_iterator () [inline]

Construct end of input stream iterator.

Definition at line 62 of file iterator.

template<typename Type, typename CharT = char, typename Traits = char_traits<CharT>, typename Dist = ptrdiff_t> std::istream_iterator< Type, CharT, Traits, Dist >::istream_iterator (istream_type & s) [inline]

Construct start of input stream iterator.

Definition at line 66 of file iterator.

Author

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