STD::_LIST_NODE(3)

✨ NAME ✨

okay so, bestie, welcome to the Library Functions Manual πŸ’– this page is all about std::_List_node< _Tp > β€” and what is it? An actual node in the list. that's it, that's the whole thing. it's the literal node. the main character of the linked list. periodt πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <list>

and it Inherits std::__detail::_List_node_base β€” yeah she's got a base class, we love generational wealth 🫢

🌸 Public Types 🌸

  • typedef _List_node_base * _Base_ptr β€” a pointer to the base, the classic _Base_ptr glow-up ✨
  • typedef _List_node * _Node_ptr β€” and a pointer to the node itself, _Node_ptr, iconic πŸ’…

πŸ’œ Public Member Functions πŸ’œ

  • _List_node_base * _M_base () β€” hands you back the base pointer, no drama
  • const _List_node_base * _M_base () const β€” the const version of the same thing, for when you're being ✨respectful✨ and not touching anything
  • void _M_hook (_List_node_base *const __position) noexcept β€” hooks this node in at __position. noexcept so it's literally promising not to throw, no cap πŸŽ€
  • _Node_ptr _M_node_ptr () β€” gimme the node pointer bestie
  • void _M_reverse () noexcept β€” flips the vibe, reverses it. also noexcept πŸ”₯
  • void _M_transfer (_List_node_base *const __first, _List_node_base *const __last) noexcept β€” moves the whole range from __first to __last over here. yes it's noexcept too, she's consistent πŸ’€
  • void _M_unhook () noexcept β€” yeets this node out of the list. noexcept. bye πŸ‘‹
  • _Tp * _M_valptr () β€” pointer to the actual stored value, the payload, the moment ⭐
  • _Tp const * _M_valptr () const β€” const pointer to the value, for looking respectfully only πŸ™ˆ

🌈 Static Public Member Functions 🌈

  • static void swap (_List_node_base &__x, _List_node_base &__y) noexcept β€” swaps __x and __y, static so you don't need an instance, noexcept so it's chill about it πŸ’–

πŸ“ Public Attributes πŸ“

  • _List_node_base * _M_next β€” the next one in line, she's pointing forward
  • _List_node_base * _M_prev β€” and the previous one, pointing back. it's giving doubly linked, as she should πŸ’…
  • __gnu_cxx::__aligned_membuf< _Tp > _M_storage β€” the aligned storage where the value actually lives. aligned, bestie. she's aligned ✨

πŸ’– DETAILED DESCRIPTION πŸ’–

okay so here's the actual definition, look at her:

template<typename _Tp>
    struct std::_List_node< _Tp >"An actual node in the list.

template<typename _Tp> β€” yes it's templated, she works with any _Tp you throw at her, versatile queen πŸ‘‘


πŸŽ€ AUTHOR πŸŽ€

Generated automatically by Doxygen for libstdc++ from the source code. so nobody wrote this, the machine did, and honestly? she ate πŸ€–πŸ’…


and that's the whole page, bestie β€” brought to you by libstdc++ in the Library Functions Manual, section 3. go forth and pointer 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