.TH "std::istream_iterator< _Tp, _CharT, _Traits, _Dist >" 3cxx "Wed Jul 28 2021" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::istream_iterator< _Tp, _CharT, _Traits, _Dist > \- Provides input iterator semantics for streams\&. .SH SYNOPSIS .br .PP .PP Inherits \fBstd::iterator< input_iterator_tag, _Tp, ptrdiff_t, const _Tp *, const _Tp & >\fP\&. .SS "Public Types" .in +1c .ti -1c .RI "typedef _CharT \fBchar_type\fP" .br .ti -1c .RI "typedef ptrdiff_t \fBdifference_type\fP" .br .RI "Distance between iterators is represented as this type\&. " .ti -1c .RI "typedef \fBbasic_istream\fP< _CharT, _Traits > \fBistream_type\fP" .br .ti -1c .RI "typedef \fBinput_iterator_tag\fP \fBiterator_category\fP" .br .RI "One of the \fBtag types\fP\&. " .ti -1c .RI "typedef const _Tp * \fBpointer\fP" .br .RI "This type represents a pointer-to-value_type\&. " .ti -1c .RI "typedef const _Tp & \fBreference\fP" .br .RI "This type represents a reference-to-value_type\&. " .ti -1c .RI "typedef _Traits \fBtraits_type\fP" .br .ti -1c .RI "typedef _Tp \fBvalue_type\fP" .br .RI "The type 'pointed to' by the iterator\&. " .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "constexpr \fBistream_iterator\fP ()" .br .RI "Construct end of input stream iterator\&. " .ti -1c .RI "\fBistream_iterator\fP (const \fBistream_iterator\fP &__obj)" .br .ti -1c .RI "\fBistream_iterator\fP (\fBistream_type\fP &__s)" .br .RI "Construct start of input stream iterator\&. " .ti -1c .RI "const _Tp & \fBoperator*\fP () const" .br .ti -1c .RI "\fBistream_iterator\fP & \fBoperator++\fP ()" .br .ti -1c .RI "\fBistream_iterator\fP \fBoperator++\fP (int)" .br .ti -1c .RI "const _Tp * \fBoperator\->\fP () const" .br .ti -1c .RI "\fBistream_iterator\fP & \fBoperator=\fP (const \fBistream_iterator\fP &)=default" .br .in -1c .SS "Friends" .in +1c .ti -1c .RI "bool \fBoperator!=\fP (const \fBistream_iterator\fP &__x, const \fBistream_iterator\fP &__y)" .br .RI "Return true if the iterators refer to different streams, or if one is at end-of-stream and the other is not\&. " .ti -1c .RI "bool \fBoperator==\fP (const \fBistream_iterator\fP &__x, const \fBistream_iterator\fP &__y)" .br .RI "Return true if the iterators refer to the same stream, or are both at end-of-stream\&. " .in -1c .SH "Detailed Description" .PP .SS "template, typename _Dist = ptrdiff_t> .br class std::istream_iterator< _Tp, _CharT, _Traits, _Dist >" Provides input iterator semantics for streams\&. .PP Definition at line 49 of file stream_iterator\&.h\&. .SH "Member Typedef Documentation" .PP .SS "typedef ptrdiff_t \fBstd::iterator\fP< \fBinput_iterator_tag\fP , _Tp, ptrdiff_t , const _Tp * , const _Tp & >::\fBdifference_type\fP\fC [inherited]\fP" .PP Distance between iterators is represented as this type\&. .PP Definition at line 134 of file stl_iterator_base_types\&.h\&. .SS "typedef \fBinput_iterator_tag\fP \fBstd::iterator\fP< \fBinput_iterator_tag\fP , _Tp, ptrdiff_t , const _Tp * , const _Tp & >::\fBiterator_category\fP\fC [inherited]\fP" .PP One of the \fBtag types\fP\&. .PP Definition at line 130 of file stl_iterator_base_types\&.h\&. .SS "typedef const _Tp * \fBstd::iterator\fP< \fBinput_iterator_tag\fP , _Tp, ptrdiff_t , const _Tp * , const _Tp & >::\fBpointer\fP\fC [inherited]\fP" .PP This type represents a pointer-to-value_type\&. .PP Definition at line 136 of file stl_iterator_base_types\&.h\&. .SS "typedef const _Tp & \fBstd::iterator\fP< \fBinput_iterator_tag\fP , _Tp, ptrdiff_t , const _Tp * , const _Tp & >::\fBreference\fP\fC [inherited]\fP" .PP This type represents a reference-to-value_type\&. .PP Definition at line 138 of file stl_iterator_base_types\&.h\&. .SS "typedef _Tp \fBstd::iterator\fP< \fBinput_iterator_tag\fP , _Tp, ptrdiff_t , const _Tp * , const _Tp & >::\fBvalue_type\fP\fC [inherited]\fP" .PP The type 'pointed to' by the iterator\&. .PP Definition at line 132 of file stl_iterator_base_types\&.h\&. .SH "Constructor & Destructor Documentation" .PP .SS "template, typename _Dist = ptrdiff_t> constexpr \fBstd::istream_iterator\fP< _Tp, _CharT, _Traits, _Dist >::\fBistream_iterator\fP ()\fC [inline]\fP, \fC [constexpr]\fP" .PP Construct end of input stream iterator\&. .PP Definition at line 67 of file stream_iterator\&.h\&. .SS "template, typename _Dist = ptrdiff_t> \fBstd::istream_iterator\fP< _Tp, _CharT, _Traits, _Dist >::\fBistream_iterator\fP (\fBistream_type\fP & __s)\fC [inline]\fP" .PP Construct start of input stream iterator\&. .PP Definition at line 71 of file stream_iterator\&.h\&. .SH "Friends And Related Function Documentation" .PP .SS "template, typename _Dist = ptrdiff_t> bool operator!= (const \fBistream_iterator\fP< _Tp, _CharT, _Traits, _Dist > & __x, const \fBistream_iterator\fP< _Tp, _CharT, _Traits, _Dist > & __y)\fC [friend]\fP" .PP Return true if the iterators refer to different streams, or if one is at end-of-stream and the other is not\&. .PP Definition at line 153 of file stream_iterator\&.h\&. .SS "template, typename _Dist = ptrdiff_t> bool operator== (const \fBistream_iterator\fP< _Tp, _CharT, _Traits, _Dist > & __x, const \fBistream_iterator\fP< _Tp, _CharT, _Traits, _Dist > & __y)\fC [friend]\fP" .PP Return true if the iterators refer to the same stream, or are both at end-of-stream\&. .PP Definition at line 147 of file stream_iterator\&.h\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.