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_ptrglow-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 dramaconst _List_node_base * _M_base () constβ the const version of the same thing, for when you're being β¨respectfulβ¨ and not touching anythingvoid _M_hook (_List_node_base *const __position) noexceptβ hooks this node in at__position.noexceptso it's literally promising not to throw, no cap π_Node_ptr _M_node_ptr ()β gimme the node pointer bestievoid _M_reverse () noexceptβ flips the vibe, reverses it. alsonoexceptπ₯void _M_transfer (_List_node_base *const __first, _List_node_base *const __last) noexceptβ moves the whole range from__firstto__lastover here. yes it'snoexcepttoo, 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__xand__y, static so you don't need an instance,noexceptso 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