STD::__FWDLIST__ITERATOR(3)

πŸ“¦
version 16.2.1+r23+gd564253eb6c8 Β· 4 versions
, in arch rolling, fedora 44

✨ NAME ✨

okay bestie, meet the icon: std::__fwdlist::_Iterator< _Const, _Ptr > β€” a forward_list iterator for when the allocator is out here using fancy pointers. yes that's the whole vibe. she's an iterator. she's fancy. periodt. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <forward_list>

🌸 Public Types

  • using difference_type
  • using iterator_category
  • using pointer
  • using reference
  • using value_type

πŸ’œ Public Member Functions

  • constexpr _Iterator (_Base_ptr __x) noexcept β€” build a whole iterator out of a base pointer, and it's noexcept so no drama.
  • _Iterator (const _Iterator &)=default β€” copy constructor, just default behaviour, nothing extra added.
  • constexpr _Iterator (const _Iterator< false, _Ptr > &__i) β€” the conversion moment: turning a non-const iterator into... well, the other flavour. glow-up energy. ✨
  • constexpr reference operator* () const noexcept β€” deref her and get a reference back, noexcept, no chaos.
  • constexpr _Iterator & operator++ () noexcept β€” prefix ++, moves forward, returns you (_Iterator &), noexcept. slay.
  • constexpr _Iterator operator++ (int) noexcept β€” postfix ++, hands you back a copy of where you were, noexcept.
  • constexpr pointer operator-> () const noexcept β€” arrow access, gives you a pointer, noexcept.
  • _Iterator & operator= (const _Iterator &)=default β€” assignment, defaulted, no notes.

πŸŽ€ Friends

  • template<typename _Tp, typename _Allocator> struct ::_Fwd_list_base
  • template<typename _Tp, typename _Allocator> class ::forward_list
  • constexpr bool operator== (const _Iterator &__x, const _Iterator &__y) noexcept β€” forward list iterator equality comparison. (yes bestie, that's literally what the docs say it does πŸ’–)

πŸ’– Detailed Description πŸ’–

template<bool _Const, typename _Ptr>
    class std::__fwdlist::_Iterator< _Const, _Ptr >
"A forward_list iterator when the allocator uses fancy pointers."

she said it herself. that's the whole description, and honestly? she ate. πŸ”₯


template<bool _Const, typename _Ptr>
  bool operator== (const _Iterator< _Const, _Ptr > & __x, const _Iterator< _Const, _Ptr > & __y) [friend]

Forward list iterator equality comparison. yep β€” that's the friend operator==, and its entire documented job is comparing two forward list iterators for equality. no cap. πŸ¦‹


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for libstdc++ from the source code. like, nobody hand-wrote this, the robot did it, and we respect the robot's hustle. πŸ€–πŸ’…


mwah, that's a wrap πŸŽ€ this lil page lives in the Library Functions Manual and it's brought to you by libstdc++ β€” go forth and iterate forward (never backward, she doesn't do that) βœ¨πŸ’–πŸ¦‹

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