STD::_FWD_LIST_CONST_ITERATOR(3)

πŸ’… std::_Fwd_list_const_iterator< _Tp > β€” NAME

okay so bestie, welcome to the Library Functions Manual ✨ and today's main character is std::_Fwd_list_const_iterator< _Tp > β€” literally a forward_list::const_iterator. that's it. that's the vibe. πŸŽ€


πŸ¦‹ SYNOPSIS

#include <forward_list>

✨ Public Types

  • typedef const _Fwd_list_node< _Tp > _Node β€” the node type it peeks at, but make it const 🫢
  • typedef _Fwd_list_const_iterator< _Tp > _Self β€” it's giving self-referential. it knows who it is πŸ’…
  • typedef ptrdiff_t difference_type β€” the difference type, for when you gotta measure the gap between two of these πŸ“
  • typedef _Fwd_list_iterator< _Tp > iterator β€” the non-const sibling. the mutable one. the wild one 🌈
  • typedef std::forward_iterator_tag iterator_category β€” yep, it's a forward iterator. no going back (literally, it only goes forward) ⭐
  • typedef const _Tp * pointer β€” a pointer, but const. boundaries, bestie πŸ’œ
  • typedef const _Tp & reference β€” a reference, also const. same energy ✨
  • typedef _Tp value_type β€” the actual type you're iterating over 🧚

🌸 Public Member Functions

  • _Fwd_list_const_iterator (const _Fwd_list_node_base *__n) noexcept β€” constructor that takes a node pointer. noexcept, so it will not be dramatic 😌
  • _Fwd_list_const_iterator (const iterator &__iter) noexcept β€” constructor that converts from the non-const iterator. glow-up from mutable to const, no cap πŸ”₯
  • reference operator* () const noexcept β€” dereference it, get your const reference, iconic behavior πŸ‘‘
  • _Self & operator++ () noexcept β€” pre-increment. move forward one step, return yourself πŸ’ƒ
  • _Self operator++ (int) noexcept β€” post-increment. returns a copy of where you were, then moves on. the way it remembers the past πŸ₯Ή
  • pointer operator-> () const noexcept β€” arrow operator, so you can poke at members directly πŸ’…

πŸŽ€ Friends

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

πŸ’– Detailed Description

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

"A forward_list::const_iterator."

All the functions are op overloads. every single one. that's the whole personality. no extra lore, no side quests, just operators being operators πŸ’€


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

Forward list const_iterator equality comparison. it checks if two of these little guys are pointing at the same spot. if they are: equal. if not: not equal. fr fr 🀝


🌟 Author

Generated automatically by Doxygen for libstdc++ from the source code. not a human, just a very diligent robot doing its thing πŸ™ˆβœ¨


bestie reminder: this whole page came out of the libstdc++ source, and it's std::_Fwd_...tor< _Tp >(3) all the way down. mwah, go read the source πŸ’‹ πŸŽ€
πŸ“¦ 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