STD::_FWD_LIST_NODE(3cxx)

πŸŽ€ NAME πŸŽ€

Okay bestie, welcome to the std::_Fwd_list_node< _Tp >(3cxx) page πŸ’…. This is a helper node class for forward_list β€” that's the whole vibe. It's just a linked list, but every node has uninitialized storage for a data value in it. Also? There is a sorting utility method. Yes ma'am.


✨ SYNOPSIS ✨

#include <forward_list>

Inherits std::_Fwd_list_node_base β€” that's the base class, periodt.

πŸ’– Public Member Functions πŸ’–

  • void _M_reverse_after () noexcept β€” the reverse-after operation, and it's marked noexcept 🫢.
  • _Fwd_list_node_base * _M_transfer_after (_Fwd_list_node_base *__begin, _Fwd_list_node_base *__end) noexcept β€” the transfer-after helper: it takes __begin and __end, both _Fwd_list_node_base *, returns a _Fwd_list_node_base *, and is noexcept.
  • const _Tp * _M_valptr () const noexcept β€” const flavor of the value-pointer getter: returns const _Tp *, and it's noexcept.
  • _Tp * _M_valptr () noexcept β€” non-const flavor of the value-pointer getter: returns _Tp *, and it's noexcept.

πŸ¦‹ Public Attributes πŸ¦‹

  • _Fwd_list_node_base * _M_next β€” a _Fwd_list_node_base * named _M_next. Exact type, no cap.
  • __gnu_cxx::__aligned_buffer< _Tp > _M_storage β€” the aligned buffer for storage, typed exactly as __gnu_cxx::__aligned_buffer< _Tp >.

🌸 Detailed Description 🌸

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

The description attached to that struct says: β€œA helper node class for forward_list. This is just a linked list with uninitialized storage for a data value in each node. There is a sorting utility method.” Like, that's it, that's the tea β˜•βœ¨.


πŸ‘‘ Author πŸ‘‘

This page was generated automatically by Doxygen for libstdc++ from the source code β€” yes, she's auto-built, not handwritten πŸ’….


Cute sign-off bestie: source/version is libstdc++, and the footer repeats std::_Fwd_list_node< _Tp >(3cxx); no separate date is shown on this page. Bye 🫢🌈✨

πŸ“¦ where this page comes from