STD::__DETAIL::_REHASH_BASE(3cxx)
π NAME π
okay so bestie, gather round β this is std::__detail::_Rehash_base< _Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits, typename >, and yes the manual it lives in is the 3cxx one, iykyk π
π¦ SYNOPSIS π¦
the way this thing gets *inherited*β¦ it's giving main character energy, fr fr. it's inherited by:
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 >
like. four whole hashtables. she's popular, no cap π
β¨ Detailed Description β¨
template<typename _Key, typename _Value, typename _Alloc, typename
_ExtractKey, typename _Equal, typename _H1, typename _H2, typename
_Hash, typename _RehashPolicy, typename _Traits, typename =
__detected_or_t<false_type, __has_load_factor, _RehashPolicy>>
struct std::__detail::_Rehash_base< _Key, _Value, _Alloc, _ExtractKey,
_Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits, typename >
okay so this is the "Primary class template _Rehash_base." π
and what does she do?? literally this: give the hashtable the max_load_factor functions and reserve iff the rehash policy supports it. that's it. that's the whole job. if the policy says no, she says no too β a queen with boundaries π«Ά
bestie note: that last template parameter defaults to__detected_or_t<false_type, __has_load_factor, _RehashPolicy>, which is the whole "do you support this or not" vibe check right there. theiffis doing heavy lifting, don't sleep on it π
π Author π
Generated automatically by Doxygen for libstdc++ from the source code.
so yeah, that's the whole page!! she's short but she's iconic π this beauty came to you courtesy of libstdc++ (the Doxygen-generated source-code glow-up, generated automatically), living in the 3cxx manual β mwah, bye bestie, go read some headers πβ¨
π¦ 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