STD::_FWD_LIST_CONST_ITERATOR(3cxx)

πŸ’– std::_Fwd_list_const_iterator< _Tp > πŸ’–

okay so this is the 3cxx manual page for std::_Fwd_list_const_iterator< _Tp >, bestie. It's the const iterator for forward_list, and it is lowkey giving β€œI know where the nodes are, but I will not let you touch them” energy. No cap.

🌸 NAME 🌸

std::_Fwd_list_const_iterator< _Tp > β€” a forward_list::const_iterator. That's the name drop, slay.

✨ SYNOPSIS ✨

#include <forward_list>

πŸŽ€ Public Types πŸŽ€

  • typedef const _Fwd_list_node< _Tp > _Node β€” the _Node typedef, exactly as written.
  • typedef _Fwd_list_const_iterator< _Tp > _Self β€” the _Self typedef, aka β€œhi, that's me.”
  • typedef ptrdiff_t difference_type β€” difference_type is literally ptrdiff_t.
  • typedef _Fwd_list_iterator< _Tp > iterator β€” the iterator typedef, pointing at _Fwd_list_iterator< _Tp >.
  • typedef std::forward_iterator_tag iterator_category β€” category tag: std::forward_iterator_tag, periodt.
  • typedef const _Tp * pointer β€” the pointer typedef is const _Tp *.
  • typedef const _Tp & reference β€” the reference typedef is const _Tp &.
  • typedef _Tp value_type β€” value_type is _Tp. iconic.

πŸ’… Public Member Functions πŸ’…

  • _Fwd_list_const_iterator (const _Fwd_list_node_base *__n) noexcept β€” constructor from const _Fwd_list_node_base *__n, and yes it's noexcept.
  • _Fwd_list_const_iterator (const iterator &__iter) noexcept β€” constructor from const iterator &__iter, also noexcept.
  • _Self _M_next () const noexcept β€” returns _Self, is const, and is noexcept.
  • reference operator* () const noexcept β€” dereference returns reference, is const, noexcept.
  • _Self & operator++ () noexcept β€” pre-increment returns _Self &, noexcept.
  • _Self operator++ (int) noexcept β€” post-increment returns _Self, noexcept.
  • pointer operator-> () const noexcept β€” arrow returns pointer, is const, noexcept.

πŸ¦‹ Public Attributes πŸ¦‹

  • const _Fwd_list_node_base * _M_node β€” the public attribute, exactly that. main character data member energy.

🌈 Friends 🌈

  • bool operator== (const _Self &__x, const _Self &__y) noexcept β€” forward list const_iterator equality comparison. Friend behavior, fr fr.

πŸ’œ Detailed Description πŸ’œ

template<typename _Tp>
    struct std::_Fwd_list_const_iterator< _Tp >

A forward_list::const_iterator.

All the functions are op overloads. That's the whole vibe: every function here is an operator overload, bestie. πŸ’…

⭐ operator== ⭐

template<typename _Tp >
bool operator== (const _Self & __x, const _Self & __y) [friend]

Forward list const_iterator equality comparison. It compares __x and __y, and yes it's marked [friend].

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code. So not a human author, bestie β€” Doxygen did the typing. 😭


πŸ’– mwah, that's the whole page. Source/version energy: libstdc++, auto-generated by Doxygen from the source code. Footer tag: libststd::_Fwd_list_...iterator< _Tp >(3cxx). No separate date is printed on this page, so I'm not inventing one β€” periodt. πŸŽ€
πŸ“¦ where this page comes from