std::istream_iterator< _Tp, _CharT, _Traits, _Dist > - Provides input iterator semantics for streams.
Contents
Constructor & Destructor Documentation
template<typename_Tp,typename_CharT=char,typename_Traits=char_traits<_CharT>,typename_Dist=ptrdiff_t>constexprstd::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.
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_Distancestd::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_Categorystd::iterator<_Category,_Tp,_Distance,_Pointer,_Reference>::iterator_category[inherited]
One of the tagtypes.
template<typename_Category,typename_Tp,typename_Distance=ptrdiff_t,typename_Pointer=_Tp*,typename_Reference=_Tp&>typedef_Pointerstd::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_Referencestd::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_Tpstd::iterator<_Category,_Tp,_Distance,_Pointer,_Reference>::value_type[inherited]
The type 'pointed to' by the iterator.
Name
std::istream_iterator< _Tp, _CharT, _Traits, _Dist > - Provides input iterator semantics for streams.
Synopsis
#include <iterator>
Inherits std::iterator<_Category,_Tp,_Distance,_Pointer,_Reference>.
PublicTypestypedef _CharT char_typetypedef_Distancedifference_type
Distance between iterators is represented as this type.
typedefbasic_istream< _CharT, _Traits > istream_typetypedef_Categoryiterator_category
One of the tagtypes.
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_typetypedef _Tp value_type
The type 'pointed to' by the iterator.
PublicMemberFunctions
constexpr istream_iterator () noexcept(/*conditional */)
Construct end of input stream iterator.
constexpr istream_iterator (const istream_iterator &__obj) noexcept(/*conditional */)
constexpr istream_iterator (default_sentinel_t) noexcept(is_nothrow_default_constructible_v< _Tp >)
istream_iterator (istream_type &__s)
Construct start of input stream iterator.
const _Tp & operator* () const noexcept
istream_iterator & operator++ ()
istream_iteratoroperator++ (int)
const _Tp * operator-> () const noexcept
istream_iterator & operator= (const istream_iterator &)=defaultFriends
bool operator== (const istream_iterator &__i, default_sentinel_t) noexcept
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.
