__GNU_PBDS::DETAIL::RB_TREE_NODE_(3cxx)

πŸ’– NAME πŸ’–

__gnu_pbds::detail::rb_tree_node_< Value_Type, Metadata, _Alloc > β€” bestie, it's literally the Node for Red-Black trees. ✨ This cutie is from the 3cxx manual, and it's giving very specific template energy.

✨ SYNOPSIS ✨

okay so first things first, you pull it in with this exact include:

#include <node.hpp>

🌸 Public Types 🌸

  • metadata_const_reference β€” the const-reference metadata alias, and the exact typedef is typedef rebind_traits< _Alloc, metadata_type >::const_reference metadata_const_reference. πŸ’…
  • metadata_reference β€” the reference metadata alias, exactly typedef rebind_traits< _Alloc, metadata_type >::reference metadata_reference. ✨
  • metadata_type β€” literally typedef Metadata metadata_type. 🫢
  • node_pointer β€” the node-pointer alias, exactly typedef rebind_traits< _Alloc, rb_tree_node_ >::pointer node_pointer. πŸŽ€
  • value_type β€” exactly typedef Value_Type value_type. 🌟

🫢 Public Member Functions 🫢

  • metadata_reference get_metadata () β€” non-const getter, no arguments, returns metadata_reference. no cap. πŸ’–
  • metadata_const_reference get_metadata () const β€” const overload, no arguments, returns metadata_const_reference. iconic. ✨
  • bool special () const β€” const, no arguments, returns bool. periodt. πŸ¦‹

πŸŽ€ Public Attributes πŸŽ€

  • metadata_type m_metadata β€” a metadata_type member, right there in the open. πŸ’…
  • node_pointer m_p_left β€” a node_pointer member. 🌸
  • node_pointer m_p_parent β€” a node_pointer member. 🫢
  • node_pointer m_p_right β€” a node_pointer member. πŸŽ€
  • bool m_red β€” a bool member. πŸ”₯
  • value_type m_value β€” a value_type member. ⭐

πŸ‘‘ Detailed Description πŸ‘‘

The template declaration is literally this, and the description is "Node for Red-Black trees." β€” yes, that's the whole vibe:

   template<typename Value_Type, class Metadata, typename _Alloc>
       struct __gnu_pbds::detail::rb_tree_node_< Value_Type, Metadata, _Alloc
       >"Node for Red-Black trees.

So yeah: Value_Type, Metadata, _Alloc, and red-black tree node main character energy. πŸŒˆπŸ‘‘

🌈 Author 🌈

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


Cute sign-off time, bestie: source/version is libstdc++ with the 3cxx manual tag, generated from the source code β€” and the date slot in the footer text isn't actually shown in this excerpt, so I'm not gonna invent one. πŸ’€πŸ’–