STD::__DETAIL::_EQUALITY(3cxx)

✨ NAME ✨

std::__detail::_Equality< _Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits, _Unique_keys > πŸ’–

okay bestie, yes, that is a LOT of angle brackets, we're in the 3cxx section, breathe, it's fine, I promise 🫢


🌸 SYNOPSIS 🌸

She's a base class, so she gets inherited by all these iconic little containers:

  • std::_Hashtable< _Key, _Tp, _Hash, _Pred, allocator< std::pair< const _Key, _Tp > > >
  • std::_Hashtable< _Key, _Tp, hash< _Key >, equal_to< _Key >, allocator< std::pair< const _Key, _Tp > > >
  • std::_Hashtable< _Value, hash< _Value >, equal_to< _Value >, allocator< _Value > >
  • and std::_Hashtable< _Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits >

the way that one struct has four whole _Hashtables looking up to her… main character energy fr fr πŸ‘‘


πŸ’… Detailed Description πŸ’…

πŸ¦‹ the declaration πŸ¦‹

template<typename _Key, typename _Value, typename _Alloc, typename
    _ExtractKey, typename _Equal, typename _H1, typename _H2, typename
    _Hash, typename _RehashPolicy, typename _Traits, bool _Unique_keys =
    _Traits::__unique_keys::value>
    struct std::__detail::_Equality< _Key, _Value, _Alloc, _ExtractKey,
    _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits, _Unique_keys >
"Primary class template _Equality."

yes that's literally the official description, she's the primary one, the blueprint, the blueprint-iest πŸ’… and note that bool _Unique_keys defaults to _Traits::__unique_keys::value β€” that's canon, don't touch it ⭐

So what is she for, you ask? πŸŽ€ She's the one implementing equality comparison for unordered containers. That whole operator== on your unordered_map? Yeah. Her. 😭

And the receipts: this is done per N3068, by John Lakos and Pablo Halpern. Algorithmically, they follow closely the reference implementations in there. No cap. Algorithmically close, closely. πŸ”₯


🧚 Author 🧚

Generated automatically by Doxygen for libstdc++ from the source code. She didn't write herself, bestie, a robot did πŸ™ˆ


lowkey iconic of her to be auto-generated and still carry a whole standard proposal on her back πŸ’œ

okay that's the whole page, love u, go read your headers πŸ“πŸŒˆβœ¨

β€” and that's a wrap on this libstdc++ entry, from your girl generated by Doxygen, dated at the bottom of the original page πŸŒΈπŸ’–

πŸ“¦ where this page comes from