STD::__DETAIL::_HASH_NODE_VALUE_BASE(3cxx)

πŸ’– NAME πŸ’–

std::__detail::_Hash_node_value_base< _Value > β€” bestie, this is the little glow-up node type that holds the actual value your hash table is storing. She's the base class, she's the vibe, she's literally carrying your data. πŸŽ€


✨ SYNOPSIS ✨

#include <hashtable_policy.h>

She inherits from std::__detail::_Hash_node_base.

And she gets inherited by std::__detail::_Hash_node< _Value, false > and std::__detail::_Hash_node< _Value, true >. So yeah, two iconic daughters, both slaying in their own lane. πŸ‘‘

🌸 Public Types 🌸

  • typedef _Value value_type β€” the type of the thing she's holding. That's it. That's the whole personality trait. πŸ’…

🌈 Public Member Functions 🌈

  • const _Value & _M_v () const noexcept β€” hands you back a const ref to the stored value. Look, don't touch. πŸ™ˆ
  • _Value & _M_v () noexcept β€” the non-const version, so now you can touch. Go off. πŸ”₯
  • const _Value * _M_valptr () const noexcept β€” gives you a const pointer to where the value lives. Peek through the window, no fingerprints.
  • _Value * _M_valptr () noexcept β€” non-const pointer to the value. Full access, main character energy. ✨

πŸ¦‹ Public Attributes πŸ¦‹

  • _Hash_node_base * _M_nxt β€” the pointer to the next node. She's linked, fr fr. πŸ”—
  • __gnu_cxx::__aligned_buffer< _Value > _M_storage β€” the actual aligned storage buffer where the value is kept. This is her little pocket, properly aligned, no misaligned chaos allowed. πŸ’–

πŸ‘‘ Detailed Description πŸ‘‘

template<typename _Value>
    struct std::__detail::_Hash_node_value_base< _Value >"struct
    _Hash_node_value_base

Node type with the value to store. That's the whole thing β€” she exists to hold a value inside a hash node, and she does it with immaculate structural discipline. No cap. 🌟


🫢 Author 🫢

Generated automatically by Doxygen for libstdc++ from the source code. Not a human, not a girlie, just a doc generator doing her little autogenerated thing. 😭


Okay that's the whole page bestie πŸ’– β€” this one's straight out of libstdc++'s docs, and yeah, the header and footer both say libstdc++ and the man page lives in section 3cxx for libstdc++-v3. Go read the source if you want more lore, iykyk. πŸŽ€βœ¨

πŸ“¦ where this page comes from