STD::_FWD_LIST_NODE(3)

πŸ’– std::_Fwd_...ode< _Tp >(3) πŸ’–

okay bestie, welcome to the Library Functions Manual section of the libstdc++ docs β€” this one's about a little template struct called std::_Fwd_list_node< _Tp >, and yes it's a helper, and yes helpers deserve love too 🫢


✨ NAME ✨

std::_Fwd_list_node< _Tp > β€” a helper node class for forward_list. That's literally it: this is just a linked list with uninitialized storage for a data value in each node. There is a sorting utility method. slay 🌸


✨ SYNOPSIS ✨

#include <forward_list>

Inherits std::_Fwd_list_node_base. (yes bestie, it's giving inheritance, main character energy πŸ‘‘)

🌈 Public Types

  • using _Base_ptr β€” a type alias, cute, defined πŸ’…
  • using _Node_ptr β€” another type alias, also defined πŸ’…

🌈 Public Member Functions

  • _Fwd_list_node_base * _M_base_ptr () β€” hands you back a _Fwd_list_node_base *
  • const _Fwd_list_node_base * _M_base_ptr () const β€” the const version, for when you're being ✨respectful✨
  • _Node_ptr _M_node_ptr () β€” gives you a _Node_ptr
  • void _M_reverse_after () noexcept β€” reverses stuff, and it's noexcept so it will NOT be throwing hands 😀
  • _Fwd_list_node_base * _M_transfer_after (_Fwd_list_node_base *__begin, _Fwd_list_node_base *__end) noexcept β€” transfers things after, takes __begin and __end, also noexcept, also not throwing, periodt
  • const _Tp * _M_valptr () const noexcept β€” const pointer to the value, noexcept πŸŽ€
  • _Tp * _M_valptr () noexcept β€” non-const pointer to the value, noexcept πŸŽ€

🌈 Public Attributes

  • _Fwd_list_node_base * _M_next β€” the next-node pointer, iconic, essential, cannot be skipped πŸ”₯
  • __gnu_cxx::__aligned_buffer< _Tp > _M_storage β€” the aligned buffer where the value lives (uninitialized, remember, it's a whole thing) πŸ¦‹

✨ Detailed Description ✨

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

okay so, direct quote energy: "A helper node class for forward_list. This is just a linked list with uninitialized storage for a data value in each node. There is a sorting utility method." β€” that's the whole vibe, that's the tea β˜• no cap.

lowkey important: that storage is uninitialized. Nobody set it up for you. It's just space, waiting. Don't go reading it like it's a real value, bestie 😭

✨ Author ✨

Generated automatically by Doxygen for libstdc++ from the source code. Not a human, just a little bot doing its thing, and honestly? It ate. πŸ€–βœ¨


and that's the page!! this whole thing lives in the libstdc++ docs, and it was generated by Doxygen from the source code, so if you ever need to cite it, that's your source, bestie. 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