STD::_LIST_CONST_ITERATOR(3)
π NAME π
std::_List_const_iterator< _Tp > β bestie, it's a list::const_iterator. That's the whole vibe. No cap. β¨
π SYNOPSIS π
#include <list>
πΈ Public Types πΈ
typedef const _List_node< _Tp > _Nodeβ the node type it points at, but make it const πtypedef ptrdiff_t difference_typeβ the classic "how far apart are these" type,ptrdiff_t, iconic as alwaystypedef _List_iterator< _Tp > iteratorβ the non-const glow-up version of itself π¦typedef std::bidirectional_iterator_tag iterator_categoryβ it's a bidirectional girlie, she walks both ways πΆβοΈπΆβοΈtypedef const _Tp * pointerβ a pointer to aconst _Tp, obviouslytypedef const _Tp & referenceβ and a reference to aconst _Tp, matching set π«Άtypedef _Tp value_typeβ the underlying type, the main character itself π
β Public Member Functions β
_List_const_iterator (const __detail::_List_node_base *__x) noexceptβ build one from a__detail::_List_node_basepointer,noexcept, she's chill like that_List_const_iterator (const iterator &__x) noexceptβ or build one from aniterator, alsonoexceptπiterator _M_const_cast () const noexceptβ hands you back a plainiterator,const,noexcept, no dramareference operator* () const noexceptβ dereference,const,noexcept, gives you areference_List_const_iterator & operator++ () noexceptβ pre-increment, returns a reference to itself,noexcept_List_const_iterator operator++ (int) noexceptβ post-increment, takes anint, returns a copy,noexcept_List_const_iterator & operator-- () noexceptβ pre-decrement, returns a reference to itself,noexcept_List_const_iterator operator-- (int) noexceptβ post-decrement, takes anint, returns a copy,noexceptpointer operator-> () const noexceptβ member access,const,noexcept, returns apointer
π Public Attributes π
const __detail::_List_node_base * _M_nodeβ the actual pointer holding it all together, aconst __detail::_List_node_base *. Protect her at all costs π
π Friends π
bool operator== (const _List_const_iterator &__x, const _List_const_iterator &__y) noexceptβ the equality bestie, takes twoconst _List_const_iterator &and isnoexceptfr fr
π§ Detailed Description π§
template<typename _Tp>
struct std::_List_const_iterator< _Tp >
"A list::const_iterator.
All the functions are op overloads.
Like, all of them. Every single one is an operator overload. That's the entire personality πβ¨
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. Not a human, just a very diligent robot π
okay so that's the whole page bestie, it lives in the libstdc++ collection and this is section 3 of the manual β go forth and dereference responsibly π π¦πΈ
π¦ where this page comes from
- arch rolling: gcc 16.2.1+r23+gd564253eb6c8-1 Β· GPL-3.0-or-later WITH GCC-exception-3.1 AND GFDL-1.3-or-later
- fedora 44: libstdc++-docs 16.0.1-0.10.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
- fedora 44: libstdc++-docs 16.2.1-2.fc44
- fedora 44: libstdc++-docs 16.2.1-3.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms