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
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms