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 always
  • typedef _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 a const _Tp, obviously
  • typedef const _Tp & reference β€” and a reference to a const _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_base pointer, noexcept, she's chill like that
  • _List_const_iterator (const iterator &__x) noexcept β€” or build one from an iterator, also noexcept πŸ’–
  • iterator _M_const_cast () const noexcept β€” hands you back a plain iterator, const, noexcept, no drama
  • reference operator* () const noexcept β€” dereference, const, noexcept, gives you a reference
  • _List_const_iterator & operator++ () noexcept β€” pre-increment, returns a reference to itself, noexcept
  • _List_const_iterator operator++ (int) noexcept β€” post-increment, takes an int, 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 an int, returns a copy, noexcept
  • pointer operator-> () const noexcept β€” member access, const, noexcept, returns a pointer

πŸ’œ Public Attributes πŸ’œ

  • const __detail::_List_node_base * _M_node β€” the actual pointer holding it all together, a const __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 two const _List_const_iterator & and is noexcept fr 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