.TH "std::_Deque_iterator< _Tp, _Ref, _Ptr >" 3cxx "Wed Jul 28 2021" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::_Deque_iterator< _Tp, _Ref, _Ptr > \- A deque::iterator\&. .SH SYNOPSIS .br .PP .SS "Public Types" .in +1c .ti -1c .RI "typedef \fB__ptr_rebind\fP< _Ptr, _Tp > \fB_Elt_pointer\fP" .br .ti -1c .RI "typedef \fB__ptr_rebind\fP< _Ptr, _Elt_pointer > \fB_Map_pointer\fP" .br .ti -1c .RI "typedef \fB_Deque_iterator\fP \fB_Self\fP" .br .ti -1c .RI "typedef \fB__iter\fP< const _Tp > \fBconst_iterator\fP" .br .ti -1c .RI "typedef ptrdiff_t \fBdifference_type\fP" .br .ti -1c .RI "typedef \fB__iter\fP< _Tp > \fBiterator\fP" .br .ti -1c .RI "typedef \fBstd::random_access_iterator_tag\fP \fBiterator_category\fP" .br .ti -1c .RI "typedef _Ptr \fBpointer\fP" .br .ti -1c .RI "typedef _Ref \fBreference\fP" .br .ti -1c .RI "typedef size_t \fBsize_type\fP" .br .ti -1c .RI "typedef _Tp \fBvalue_type\fP" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "\fB_Deque_iterator\fP (_Elt_pointer __x, _Map_pointer __y) noexcept" .br .ti -1c .RI "\fB_Deque_iterator\fP (const \fB_Deque_iterator\fP &__x) noexcept" .br .ti -1c .RI "template, is_same<_Iter, iterator>>> \fB_Deque_iterator\fP (const _Iter &__x) noexcept" .br .ti -1c .RI "\fBiterator\fP \fB_M_const_cast\fP () const noexcept" .br .ti -1c .RI "void \fB_M_set_node\fP (_Map_pointer __new_node) noexcept" .br .ti -1c .RI "reference \fBoperator*\fP () const noexcept" .br .ti -1c .RI "\fB_Self\fP & \fBoperator++\fP () noexcept" .br .ti -1c .RI "\fB_Self\fP \fBoperator++\fP (int) noexcept" .br .ti -1c .RI "\fB_Self\fP & \fBoperator+=\fP (difference_type __n) noexcept" .br .ti -1c .RI "\fB_Self\fP & \fBoperator\-\-\fP () noexcept" .br .ti -1c .RI "\fB_Self\fP \fBoperator\-\-\fP (int) noexcept" .br .ti -1c .RI "\fB_Self\fP & \fBoperator\-=\fP (difference_type __n) noexcept" .br .ti -1c .RI "pointer \fBoperator\->\fP () const noexcept" .br .ti -1c .RI "\fB_Deque_iterator\fP & \fBoperator=\fP (const \fB_Deque_iterator\fP &)=default" .br .ti -1c .RI "reference \fBoperator[]\fP (difference_type __n) const noexcept" .br .in -1c .SS "Static Public Member Functions" .in +1c .ti -1c .RI "static size_t \fB_S_buffer_size\fP () noexcept" .br .in -1c .SS "Public Attributes" .in +1c .ti -1c .RI "_Elt_pointer \fB_M_cur\fP" .br .ti -1c .RI "_Elt_pointer \fB_M_first\fP" .br .ti -1c .RI "_Elt_pointer \fB_M_last\fP" .br .ti -1c .RI "_Map_pointer \fB_M_node\fP" .br .in -1c .SS "Friends" .in +1c .ti -1c .RI "template bool \fBoperator!=\fP (const \fB_Self\fP &__x, const \fB_Deque_iterator\fP< _Tp, _RefR, _PtrR > &__y) noexcept" .br .ti -1c .RI "bool \fBoperator!=\fP (const \fB_Self\fP &__x, const \fB_Self\fP &__y) noexcept" .br .ti -1c .RI "\fB_Self\fP \fBoperator+\fP (const \fB_Self\fP &__x, difference_type __n) noexcept" .br .ti -1c .RI "\fB_Self\fP \fBoperator+\fP (difference_type __n, const \fB_Self\fP &__x) noexcept" .br .ti -1c .RI "template difference_type \fBoperator\-\fP (const \fB_Self\fP &__x, const \fB_Deque_iterator\fP< _Tp, _RefR, _PtrR > &__y) noexcept" .br .ti -1c .RI "difference_type \fBoperator\-\fP (const \fB_Self\fP &__x, const \fB_Self\fP &__y) noexcept" .br .ti -1c .RI "\fB_Self\fP \fBoperator\-\fP (const \fB_Self\fP &__x, difference_type __n) noexcept" .br .ti -1c .RI "template bool \fBoperator<\fP (const \fB_Self\fP &__x, const \fB_Deque_iterator\fP< _Tp, _RefR, _PtrR > &__y) noexcept" .br .ti -1c .RI "bool \fBoperator<\fP (const \fB_Self\fP &__x, const \fB_Self\fP &__y) noexcept" .br .ti -1c .RI "template bool \fBoperator<=\fP (const \fB_Self\fP &__x, const \fB_Deque_iterator\fP< _Tp, _RefR, _PtrR > &__y) noexcept" .br .ti -1c .RI "bool \fBoperator<=\fP (const \fB_Self\fP &__x, const \fB_Self\fP &__y) noexcept" .br .ti -1c .RI "template bool \fBoperator==\fP (const \fB_Self\fP &__x, const \fB_Deque_iterator\fP< _Tp, _RefR, _PtrR > &__y) noexcept" .br .ti -1c .RI "bool \fBoperator==\fP (const \fB_Self\fP &__x, const \fB_Self\fP &__y) noexcept" .br .ti -1c .RI "template bool \fBoperator>\fP (const \fB_Self\fP &__x, const \fB_Deque_iterator\fP< _Tp, _RefR, _PtrR > &__y) noexcept" .br .ti -1c .RI "bool \fBoperator>\fP (const \fB_Self\fP &__x, const \fB_Self\fP &__y) noexcept" .br .ti -1c .RI "template bool \fBoperator>=\fP (const \fB_Self\fP &__x, const \fB_Deque_iterator\fP< _Tp, _RefR, _PtrR > &__y) noexcept" .br .ti -1c .RI "bool \fBoperator>=\fP (const \fB_Self\fP &__x, const \fB_Self\fP &__y) noexcept" .br .in -1c .SH "Detailed Description" .PP .SS "template .br struct std::_Deque_iterator< _Tp, _Ref, _Ptr >" A deque::iterator\&. Quite a bit of intelligence here\&. Much of the functionality of deque is actually passed off to this class\&. A deque holds two of these internally, marking its valid range\&. Access to elements is done as offsets of either of those two, relying on operator overloading in this class\&. .PP All the functions are op overloads except for _M_set_node\&. .PP Definition at line 113 of file stl_deque\&.h\&. .SH "Member Function Documentation" .PP .SS "template void \fBstd::_Deque_iterator\fP< _Tp, _Ref, _Ptr >::_M_set_node (_Map_pointer __new_node)\fC [inline]\fP, \fC [noexcept]\fP" Prepares to traverse new_node\&. Sets everything except _M_cur, which should therefore be set by the caller immediately afterwards, based on _M_first and _M_last\&. .PP Definition at line 260 of file stl_deque\&.h\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.