STD::__FWDLIST__NODE_BASE(3cxx)

πŸ“¦ version 16-20260322, in ubuntu resolute, ubuntu stonking

🌸 NAME 🌸

std::__fwdlist::_Node_base< _VoidPtr > β€” bestie, this is the node-base type for allocators that use fancy pointers. that's the whole vibe. πŸ’…

(this page lives in the 3cxx manual, if you were wondering where you wandered into πŸ¦‹)


✨ SYNOPSIS ✨

#include <forward_list>

okay so here's everything this little icon is packing πŸ‘‘

πŸŽ€ Public Types

  • using _Base_ptr β€” a type alias, and that's literally all it says about it. slay, mysterious. πŸ’œ

🫢 Public Member Functions

  • _Node_base (_Node_base &&__x) noexcept β€” move constructor, and it's noexcept so it will not throw. confident queen behavior. πŸ”₯
  • _Node_base (const _Node_base &)=delete β€” copy constructor is =delete. not me being uncopyable, it's giving intentional. you cannot copy this. periodt. 🚫
  • _Base_ptr _M_base_ptr () const β€” hands you back a _Base_ptr, and it's const, so it's not changing anything on the way out. 🀲
  • void _M_reverse_after () noexcept β€” reverses stuff after the node, returns void, and it's noexcept. no drama, no exceptions. πŸ’«
  • _Base_ptr _M_transfer_after (_Base_ptr __begin, _Base_ptr __end) noexcept β€” takes __begin and __end, both _Base_ptr, moves them around after this node, gives you back a _Base_ptr, and yup, noexcept again. three for three, we love consistency. 🌈
  • _Node_base & operator= (_Node_base &&__x) noexcept β€” move assignment, returns _Node_base &, noexcept. take everything, leave nothing. πŸ‘‘
  • _Node_base & operator= (const _Node_base &)=delete β€” copy assignment is also =delete. no copies on this side either, we stay exclusive. πŸ™ˆ

πŸ’– Public Attributes

  • _Base_ptr _M_next β€” the actual pointer to the next node. the whole point of the operation, lowkey. the main character. ⭐

🌷 Detailed Description 🌷

template<typename _VoidPtr>
    struct std::__fwdlist::_Node_base< _VoidPtr >

it's a template, it takes one _VoidPtr, and the description is just, again, the node-base type for allocators that use fancy pointers. yes it said it twice. yes it meant it twice. πŸ’€

so basically: it's the base every node in a forward_list inherits from when your allocator is fancy about its pointers. no cap. 🧚


πŸ’œ Author πŸ’œ

Generated automatically by Doxygen for libstdc++ from the source code.

(so nobody hand-wrote this one, it was generated by Doxygen, for libstdc++, straight from the source code. robot-made, still iconic. πŸ€–βœ¨)


and that's a wrap, bestie 🫢 this was std::__fwdlist::...ase< _VoidPtr >(3cxx) from the 3cxx manual β€” footer says the same thing because it loves repeating itself, and the whole thing came out of libstdc++. go forth and be fancy-pointer-pilled. πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from