STD::_LIST_CONST_ITERATOR(3cxx)
π¦ std::_List_const_iterator< _Tp > (3cxx) β the const_iterator for list, bestie β¨
okay so real talk, this is the std::_List_const_iterator< _Tp > manpage from the libstdc++ docs β it lives in the 3cxx manual section, and we're about to get so educated π
πΈ NAME πΈ
std::_List_const_iterator< _Tp > β literally a list::const_iterator. that's it, that's the vibe π
β¨ SYNOPSIS β¨
#include <list>
π Public Types π
_Nodeβtypedef const _List_node< _Tp >β the node type, but make it const π_Selfβtypedef _List_const_iterator< _Tp >β bestie referring to herself, main character energy frdifference_typeβtypedef ptrdiff_tβ the type you get when you subtract iteratorsiteratorβtypedef _List_iterator< _Tp >β the non-const sibling π«Άiterator_categoryβtypedef std::bidirectional_iterator_tagβ she walks both ways, no cap πΆββοΈpointerβtypedef const _Tp *β pointer to const_Tpreferenceβtypedef const _Tp &β reference to const_Tpvalue_typeβtypedef _Tpβ the actual element type, iconic
π Public Member Functions π
_List_const_iterator (const __detail::_List_node_base *__x)noexceptβ build one from a node base pointer_List_const_iterator (const iterator &__x)noexceptβ build one from a regulariterator, glow-up conversion β¨iterator _M_const_cast () constnoexceptβ const-casts back to a plainiteratorreference operator* () constnoexceptβ dereference, aka get the actual element_Self & operator++ ()noexceptβ pre-increment, move forward one π¦_Self operator++ (int)noexceptβ post-increment, moves forward but hands you the old one_Self & operator-- ()noexceptβ pre-decrement, back it up_Self operator-- (int)noexceptβ post-decrement, backwards but returns the pre-move copypointer operator-> () constnoexceptβ member access through the iterator, lowkey essential
π Public Attributes π
const __detail::_List_node_base * _M_nodeβ the raw node pointer she's holding onto, the whole personality tbh
π§ Friends π§
bool operator== (const _Self &__x, const _Self &__y)noexceptβ the equality check, because comparing iterators is a love language π
π₯ Detailed Description π₯
template<typename _Tp>
struct std::_List_const_iterator< _Tp >
"A list::const_iterator." β direct quote, she said it herself π
and the tea: all the functions are op overloads β like, every single one. operator this, operator that. operator overloads ate and left no crumbs π
π Author π
Generated automatically by Doxygen for libstdc++ straight from the source code. no human wrote this, she spawned fully formed π
okay that's the whole page bestie, go forth and iterate π
sign-off szn: this lil beauty comes from libstdc++ (libstdc++is the source/version tag on the footer, fr fr), and the footer line readslibstdstd::_List_const_iterator< _Tp >(3cxx)β yes the man page footer is a little cursed, we don't talk about it π π
π¦ where this page comes from
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms