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 itconstπ«Ά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, butconst. boundaries, bestie πtypedef const _Tp & referenceβ a reference, alsoconst. 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-constiterator. glow-up from mutable to const, no cap π₯reference operator* () const noexceptβ dereference it, get yourconstreference, 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_basetemplate<typename, typename> class forward_listbool 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 π
π«Ά Friends And Related Symbol Documentation
β 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