logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

std::iterator< _Category, _Tp, _Distance, _Pointer, _Reference > - Common iterator class.

Author

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

                                                    libststd::iterator<_Categor..._Pointer,_Reference>(3cxx)

Detailed Description

template<typename_Category,typename_Tp,typename_Distance=ptrdiff_t,typename_Pointer=_Tp*,typename_Reference=_Tp&>
       struct std::iterator< _Category, _Tp, _Distance, _Pointer, _Reference >"Common iterator class.

       This class does nothing but define nested typedefs. Iterator classes can inherit from this class to save
       some work. The typedefs are then used in specializations and overloading.

       In particular, there are no default implementations of requirements such as operator++ and the like. (How
       could there be?)

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
       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
       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
       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
       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
       The type 'pointed to' by the iterator.

Name

       std::iterator< _Category, _Tp, _Distance, _Pointer, _Reference > - Common iterator class.

Synopsis

       #include <iterator>

       Inherited by std::istream_iterator<_Tp,_CharT,_Traits,_Dist>.

   PublicTypestypedef_Distancedifference_type
           Distance between iterators is represented as this type.
       typedef_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 _Tp value_type
           The type 'pointed to' by the iterator.

See Also