STD::_FWD_LIST_ITERATOR(3)

✨ NAME ✨

std::_Fwd_list_iterator< _Tp > β€” bestie, it's a forward_list::iterator. That's the whole vibe. πŸ’–

(also hello, you're in section 3 of the Library Functions Manual, welcome to the function-call side of the house 🫢)


🌸 SYNOPSIS 🌸

#include <forward_list>

πŸŽ€ Public Types

  • typedef _Fwd_list_node< _Tp > _Node β€” the node type it's cruising around in, lowkey.
  • typedef _Fwd_list_iterator< _Tp > _Self β€” it's giving "me, myself, and I". it refers to itself. iconic.
  • typedef ptrdiff_t difference_type β€” the distance-between-things type, ptrdiff_t, no cap.
  • typedef std::forward_iterator_tag iterator_category β€” official tag: it's a forward iterator. periodt.
  • typedef _Tp * pointer β€” a pointer to _Tp. yes.
  • typedef _Tp & reference β€” a reference to _Tp. also yes.
  • typedef _Tp value_type β€” _Tp. the whole point tbh.

πŸ¦‹ Public Member Functions

  • _Fwd_list_iterator (_Fwd_list_node_base *__n) noexcept β€” constructor, takes a _Fwd_list_node_base *__n, and it's noexcept so it will NOT be dramatic. πŸ’…
  • reference operator* () const noexcept β€” dereference it. const, noexcept, chill.
  • _Self & operator++ () noexcept β€” pre-increment. gives you back a reference to yourself. main character energy.
  • _Self operator++ (int) noexcept β€” post-increment. hands you a copy of the old you. the int is just a lil dummy tag, it means nothing, we don't talk about it. 😭
  • pointer operator-> () const noexcept β€” arrow operator, const, noexcept, does the member-access thing.

🌈 Friends

  • template<typename, typename> struct _Fwd_list_base β€” friend 🫢
  • struct _Fwd_list_const_iterator< _Tp > β€” friend 🫢
  • template<typename, typename> class forward_list β€” friend 🫢
  • bool operator== (const _Self &__x, const _Self &__y) noexcept β€” Forward list iterator equality comparison.

πŸ’œ Detailed Description πŸ’œ

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

"A forward_list::iterator.

All the functions are op overloads. (every single one. all ops. all overloaded. that's the bit.) ✨


⭐ operator==

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

Forward list iterator equality comparison. that's it, that's the function, it compares two of these bad boys for equality. slay. πŸ’…


πŸ“ Author πŸ“

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

not me being auto-generated by Doxygen for libstdc++ from the source code πŸ™ˆ no human wrote this, it just appeared, and honestly? respect.

okay bye bestie, go iterate something πŸ’–βœ¨ β€” this was section 3 of the Library Functions Manual, brought to you by libstdc++. mwah πŸŽ€

πŸ“¦ 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