STD::_LIST_ITERATOR(3cxx)

πŸ’– NAME πŸ’–

okay so welcome to the std::_List_iterator< _Tp >(3cxx) page, bestie! std::_List_iterator< _Tp > is β€” drumroll β€” A list::iterator. That's the whole name. slay. πŸ¦‹

✨ SYNOPSIS ✨

#include <list>

πŸŽ€ Public Types πŸŽ€

the type squad, no cap:

  • typedef _List_node< _Tp > _Node
  • typedef _List_iterator< _Tp > _Self
  • typedef ptrdiff_t difference_type
  • typedef std::bidirectional_iterator_tag iterator_category
  • typedef _Tp * pointer
  • typedef _Tp & reference
  • typedef _Tp value_type

πŸ’… Public Member Functions πŸ’…

all of these are exactly what's on the invite, noexcept and all:

  • _List_iterator (__detail::_List_node_base *__x) noexcept
  • _Self _M_const_cast () const noexcept
  • reference operator* () const noexcept
  • _Self & operator++ () noexcept
  • _Self operator++ (int) noexcept
  • _Self & operator-- () noexcept
  • _Self operator-- (int) noexcept
  • pointer operator-> () const noexcept

🌸 Public Attributes 🌸

  • __detail::_List_node_base * _M_node

🫢 Friends 🫢

  • bool operator== (const _Self &__x, const _Self &__y) noexcept

🧚 Detailed Description 🧚

okay so the template is:

template<typename _Tp>
    struct std::_List_iterator< _Tp >"A list::iterator.

yes, the "A list::iterator. is right there in the line, bestie β€” we do not edit the source. πŸ’€

And the tea: All the functions are op overloads.

πŸ‘‘ Author πŸ‘‘

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


cute sign-off: source/version in the footer is libstdc++, and the date? not shown on this page, so no cap, I'm not inventing one. byeee πŸ’…βœ¨

πŸ“¦ where this page comes from