STD::_FWD_LIST_BASE(3)

πŸ’– std::_Fwd_list_base< _Tp, _Alloc > πŸ’–

okay so bestie, welcome to the Library Functions Manual ✨ this one's a deep-lore page about std::_Fwd_list_base< _Tp, _Alloc > β€” a base class that lives quietly behind the scenes. she's giving backstage-pass energy, not red-carpet energy. iykyk πŸŽ€


✨ NAME ✨

std::_Fwd_list_base< _Tp, _Alloc > β€” Base class for forward_list. that's the whole assignment. no more, no less πŸ’…


🌸 SYNOPSIS 🌸

#include <forward_list>

Inherited by std::forward_list< _Tp, polymorphic_allocator< _Tp > > [private], and std::forward_list< _Tp, _Alloc > [private]. so yeah, the real forward_list girlies inherit from her β€” privately tho, so don't go telling everyone πŸ™ˆ

πŸ”€ Public Types

  • const_iterator
  • iterator
  • pointer

three type aliases, all public, all cute, all doing their lil job πŸ¦‹

πŸ› οΈ Public Member Functions

  • _Fwd_list_base (_Fwd_list_base &&)=default β€” move constructor, defaulted, no notes
  • _Fwd_list_base (_Fwd_list_base &&__lst, _Node_alloc_type &&__a) β€” move in from another base plus an allocator
  • _Fwd_list_base (_Fwd_list_base &&__lst, _Node_alloc_type &&__a, std::true_type) β€” same vibe but with a std::true_type tag riding along
  • _Fwd_list_base (_Node_alloc_type &&__a) β€” just an allocator, that's the whole constructor
  • const _Node_alloc_type & _M_get_Node_allocator () const noexcept β€” hand over the node allocator, const flavored, and she literally cannot throw (noexcept πŸ’€)
  • _Node_alloc_type & _M_get_Node_allocator () noexcept β€” the non-const twin, also noexcept, also serving looks

πŸ”’ Protected Types

  • _Base_ptr
  • _Node
  • _Node_alloc_traits
  • _Node_alloc_type
  • _Node_ptr
  • _Node_traits

six protected types β€” these are the family group chat, outsiders not invited 🫢

🧚 Protected Member Functions

  • template<typename... _Args> _Node_ptr _M_create_node (_Args &&... __args) β€” variadic template moment, makes a node out of whatever args you throw at her ✨
  • void _M_destroy_node (_Node_ptr __p) β€” bye bye node, she's gone
  • _Base_ptr _M_erase_after (_Base_ptr __pos) β€” erase everything after __pos, returns a _Base_ptr
  • _Base_ptr _M_erase_after (_Base_ptr __pos, _Base_ptr __last) β€” erase the range after __pos up to __last, returns a _Base_ptr
  • _Node * _M_get_node () β€” gimme a raw _Node *
  • template<typename... _Args> _Base_ptr _M_insert_after (const_iterator __pos, _Args &&... __args) β€” insert after __pos, variadic args in, _Base_ptr out, very main character 🌈
  • void _M_put_node (_Node_ptr __p) β€” give the node back

πŸŽ€ Protected Attributes

  • _Fwd_list_impl _M_impl

one protected attribute. she holds everything together. the moment. the icon. πŸ‘‘


πŸ’« DETAILED DESCRIPTION πŸ’«

template<typename _Tp, typename _Alloc>
    struct std::_Fwd_list_base< _Tp, _Alloc >

Base class for forward_list. periodt. that's the description, that's the tea, that's the whole thing. β˜•


✍️ AUTHOR ✍️

Generated automatically by Doxygen for libstdc++ from the source code. so nobody hand-wrote this, the tooling did it, and honestly? slay, queen, automate your documentation πŸ’œ


and that's a wrap on this one, bestie β€” brought to you by the libstdc++ girlies, straight out of the Library Functions Manual, generated by Doxygen from the source code. go forth and forward_list responsibly πŸ’…βœ¨

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