STD::__FWDLIST__NODE_BASE(3cxx)
πΈ 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'snoexceptso 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'sconst, so it's not changing anything on the way out. π€²void _M_reverse_after () noexceptβ reverses stuff after the node, returnsvoid, and it'snoexcept. no drama, no exceptions. π«_Base_ptr _M_transfer_after (_Base_ptr __begin, _Base_ptr __end) noexceptβ takes__beginand__end, both_Base_ptr, moves them around after this node, gives you back a_Base_ptr, and yup,noexceptagain. 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
- ubuntu resolute: libstdc++-15-doc 15.2.0-16ubuntu1
- ubuntu resolute: libstdc++-16-doc 16-20260322-1ubuntu1
- ubuntu stonking: libstdc++-15-doc 15.3.0-4ubuntu1
- ubuntu stonking: libstdc++-16-doc 16.2.0-3ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms