STD::_LIST_NODE(3cxx)

🌸 NAME 🌸

std::_List_node< _Tp > β€” bestie, this is literally an actual node in the list. The manual name is std::_List_node< _Tp >(3cxx), and that's the whole vibe.

✨ SYNOPSIS ✨

First thing you gotta do is bring in the header:

#include <list>

And it inherits std::__detail::_List_node_base. No cap, that's the base-class situation.

πŸ’… Public Member Functions πŸ’…

  • void _M_hook (_List_node_base *const __position) noexcept β€” the _M_hook member function, signature exactly like this, with __position and noexcept and everything.
  • void _M_reverse () noexcept β€” _M_reverse, no args, noexcept, clean and simple.
  • void _M_transfer (_List_node_base *const __first, _List_node_base *const __last) noexcept β€” _M_transfer taking __first and __last, both _List_node_base *const, and yes it's noexcept.
  • void _M_unhook () noexcept β€” _M_unhook, no args, noexcept.
  • _Tp * _M_valptr () β€” _M_valptr returning _Tp *.
  • _Tp const * _M_valptr () const β€” the const version of _M_valptr, returning _Tp const *.

πŸŽ€ Static Public Member Functions πŸŽ€

  • static void swap (_List_node_base &__x, _List_node_base &__y) noexcept β€” static swap taking two _List_node_base & refs named __x and __y, and it's noexcept.

πŸ¦‹ Public Attributes πŸ¦‹

  • _List_node_base * _M_next β€” public attribute _M_next, type _List_node_base *.
  • _List_node_base * _M_prev β€” public attribute _M_prev, type _List_node_base *.
  • __gnu_cxx::__aligned_membuf< _Tp > _M_storage β€” public attribute _M_storage, type __gnu_cxx::__aligned_membuf< _Tp >.

πŸ’– Detailed Description πŸ’–

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

The description is literally: "An actual node in the list." Iconic. Periodt.

🌈 Author 🌈

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


πŸ’– that's the whole std::_List_node< _Tp >(3cxx) moment, bestie β€” source/version: libstdc++, and there's no date in the footer so I'm not inventing one. Catch you in the include graph. 🫢

πŸ“¦ where this page comes from