STD::_FWD_LIST_ITERATOR(3cxx)

πŸ’… std::_Fwd_list_iterator< _Tp > β€” the forward_list iterator page πŸ’…

okay bestie, welcome to the std::_Fwd_list_iterator< _Tp >(3cxx) page from libstdc++ β€” yes, the manual-name energy is folded in right here at the top like a little ribbon πŸŽ€. This is the iterator bestie for forward_list.


🌸 NAME 🌸

std::_Fwd_list_iterator< _Tp > β€” literally A forward_list::iterator. Short, sweet, iconic ✨.


✨ SYNOPSIS ✨

#include <forward_list>

πŸŽ€ Public Types πŸŽ€

  • _Node β€” typedef _Fwd_list_node< _Tp > _Node
  • _Self β€” typedef _Fwd_list_iterator< _Tp > _Self
  • difference_type β€” typedef ptrdiff_t difference_type
  • iterator_category β€” typedef std::forward_iterator_tag iterator_category
  • pointer β€” typedef _Tp * pointer
  • reference β€” typedef _Tp & reference
  • value_type β€” typedef _Tp value_type

🫢 Public Member Functions 🫢

  • the constructor β€” _Fwd_list_iterator (_Fwd_list_node_base *__n) noexcept
  • _M_next β€” _Self _M_next () const noexcept
  • operator* β€” reference operator* () const noexcept
  • operator++ β€” _Self & operator++ () noexcept
  • operator++ with int β€” _Self operator++ (int) noexcept
  • operator-> β€” pointer operator-> () const noexcept

🌈 Public Attributes 🌈

  • _M_node β€” _Fwd_list_node_base * _M_node

πŸ¦‹ Friends πŸ¦‹

  • operator== β€” bool operator== (const _Self &__x, const _Self &__y) noexcept
    • Forward list iterator equality comparison.

πŸ‘‘ Detailed Description πŸ‘‘

okay so here’s the struct declaration exactly as written β€” weird little quote and all, because we keep the facts, bestie:

template<typename _Tp>
    struct std::_Fwd_list_iterator< _Tp >"A forward_list::iterator.

And the docs drop this line: All the functions are op overloads. πŸ’…


template<typename _Tp > bool operator== (const _Self & __x, const _Self &
    __y) [friend]
  • Forward list iterator equality comparison.

πŸ“ Author πŸ“

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

So yes, Doxygen did the typing, libstdc++ gets the credit 🫢.


mwah πŸ’‹ β€” sign-off time: this page is from libstdc++, std::_Fwd_list_iterator< _Tp >(3cxx), cxx man page vibes, Doxygen-generated, with no date listed. That’s the footer folded into a cute little bow instead of the boring last line πŸŽ€πŸ’–

πŸ“¦ where this page comes from