__GNU_PBDS::DETAIL::CC_HT_MAP(3cxx)
π NAME π
okay so bestie, this page is all about __gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy > β a collision-chaining hash-based container. Itβs from the libstdc++ manual, section 3cxx, and it is highkey giving template-class main character energy π
β¨
β¨ SYNOPSIS β¨
#include <cc_ht_map_.hpp>
Inherits:
Inherits __gnu_pbds::detail::hash_eq_fn< Key, Eq_Fn, _Alloc, Store_Hash
>, Resize_Policy, __gnu_pbds::detail::ranged_hash_fn< Key, Hash_Fn,
_Alloc, Comb_Hash_Fn, Store_Hash >, and
__gnu_pbds::detail::types_traits< Key, Mapped, _Alloc, Store_Hash >.
the way that inheritance list ate, no cap π«Ά
πΈ Public Types πΈ
enum { store_hash }β value stores hash, true or false. πtypedef _Alloc allocator_typetypedef Comb_Hash_Fn comb_hash_fntypedef const_iterator_ const_iteratortypedef traits_base::const_pointer const_pointertypedef traits_base::const_reference const_referencetypedef _Alloc::difference_type difference_typetypedef Eq_Fn eq_fntypedef Hash_Fn hash_fntypedef iterator_ iteratortypedef traits_base::key_const_pointer key_const_pointertypedef traits_base::key_const_reference key_const_referencetypedef traits_base::key_pointer key_pointertypedef traits_base::key_reference key_referencetypedef traits_base::key_type key_typetypedef traits_base::mapped_const_pointer mapped_const_pointertypedef traits_base::mapped_const_reference mapped_const_referencetypedef traits_base::mapped_pointer mapped_pointertypedef traits_base::mapped_reference mapped_referencetypedef traits_base::mapped_type mapped_typetypedef __nothrowcopy::indicator no_throw_indicatortypedef point_const_iterator_ point_const_iteratortypedef point_iterator_ point_iteratortypedef traits_base::pointer pointertypedef traits_base::reference referencetypedef Resize_Policy resize_policytypedef _Alloc::size_type size_typetypedef integral_constant< int, Store_Hash > store_extratypedef stored_data< value_type, size_type, Store_Hash > stored_data_typetypedef traits_base::value_type value_type
π Public Member Functions π
cc_ht_map (const cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy > &)cc_ht_map (const Hash_Fn &)cc_ht_map (const Hash_Fn &, const Eq_Fn &)cc_ht_map (const Hash_Fn &, const Eq_Fn &, const Comb_Hash_Fn &)cc_ht_map (const Hash_Fn &, const Eq_Fn &, const Comb_Hash_Fn &, const Resize_Policy &)iterator begin ()const_iterator begin () constvoid clear ()template<typename It > void copy_from_range (It, It)bool empty () constβ true ifsize() == 0. πiterator end ()const_iterator end () constbool erase (key_const_reference)template<typename Pred > size_type erase_if (Pred)point_iterator find (key_const_reference)point_const_iterator find (key_const_reference) constpoint_iterator find_end ()point_const_iterator find_end () constComb_Hash_Fn & get_comb_hash_fn ()β return currentcomb_hash_fn. πconst Comb_Hash_Fn & get_comb_hash_fn () constβ return current constcomb_hash_fn. πEq_Fn & get_eq_fn ()β return currenteq_fn. πconst Eq_Fn & get_eq_fn () constβ return current consteq_fn. πHash_Fn & get_hash_fn ()β return currenthash_fn. πconst Hash_Fn & get_hash_fn () constβ return current consthash_fn. πResize_Policy & get_resize_policy ()β return currentresize_policy. πconst Resize_Policy & get_resize_policy () constβ return current constresize_policy. πvoid initialize ()std::pair< point_iterator, bool > insert (const_reference r_val)size_type max_size () constmapped_reference operator[] (key_const_reference r_key)size_type size () constvoid swap (cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy > &)
π Public Attributes π
no_throw_indicator m_no_throw_copies_indicatorstore_extra m_store_extra_indicator
π¦ Friends π¦
class const_iterator_class iterator_
π Detailed Description π
template<typename Key, typename Mapped, typename Hash_Fn, typename Eq_Fn,
typename _Alloc, bool Store_Hash, typename Comb_Hash_Fn, typename
Resize_Policy>
class __gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn,
_Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >
it is literally βA collision-chaining hash-based container.β and thatβs the whole vibe, bestie ππ₯
π Template Parameters π
Keyβ key type.Mappedβ map type.Hash_Fnβ hashing functor. Default is__gnu_cxx::hash.Eq_Fnβ equal functor. Defaultstd::equal_to<Key>_Allocβ allocator type.Store_Hashβ if key type stores extra metadata. Defaults tofalse.Comb_Hash_Fnβ combining hash functor. IfHash_Fnis notnull_type, then this is the ranged-hash functor; otherwise, this is the range-hashing functor.XXX(See Design::Hash-Based Containers::Hash Policies.)Defaultdirect_mask_range_hashing.Resize_Policyβ resizes hash. Defaults tohash_standard_resize_policy, usinghash_exponential_size_policyandhash_load_check_resize_trigger.
Bases are: detail::hash_eq_fn, Resize_Policy, detail::ranged_hash_fn, detail::types_traits. (Optional: detail::debug_map_base.)
π Member Enumeration Documentation π
template<typename Key , typename Mapped , typename Hash_Fn , typename Eq_Fn
, typename _Alloc , bool Store_Hash, typename Comb_Hash_Fn , typename
Resize_Policy > anonymous enum
Value stores hash, true or false. π
π§ Member Function Documentation π§
empty () const
template<typename Key , typename Mapped , typename Hash_Fn , typename Eq_Fn
, typename _Alloc , bool Store_Hash, typename Comb_Hash_Fn , typename
Resize_Policy > bool __gnu_pbds::detail::cc_ht_map< Key, Mapped,
Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >::empty
() const [inline]
True if size() == 0. β¨
get_comb_hash_fn ()
template<typename Key , typename Mapped , typename Hash_Fn , typename Eq_Fn
, typename _Alloc , bool Store_Hash, typename Comb_Hash_Fn , typename
Resize_Policy > Comb_Hash_Fn & __gnu_pbds::detail::cc_ht_map< Key,
Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy
>::get_comb_hash_fn ()
Return current comb_hash_fn. π
get_comb_hash_fn () const
template<typename Key , typename Mapped , typename Hash_Fn , typename Eq_Fn
, typename _Alloc , bool Store_Hash, typename Comb_Hash_Fn , typename
Resize_Policy > const Comb_Hash_Fn & __gnu_pbds::detail::cc_ht_map< Key,
Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy
>::get_comb_hash_fn () const
Return current const comb_hash_fn. π
get_eq_fn ()
template<typename Key , typename Mapped , typename Hash_Fn , typename Eq_Fn
, typename _Alloc , bool Store_Hash, typename Comb_Hash_Fn , typename
Resize_Policy > Eq_Fn & __gnu_pbds::detail::cc_ht_map< Key, Mapped,
Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy
>::get_eq_fn ()
Return current eq_fn. π«Ά
get_eq_fn () const
template<typename Key , typename Mapped , typename Hash_Fn , typename Eq_Fn
, typename _Alloc , bool Store_Hash, typename Comb_Hash_Fn , typename
Resize_Policy > const Eq_Fn & __gnu_pbds::detail::cc_ht_map< Key,
Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy
>::get_eq_fn () const
Return current const eq_fn. π«Ά
get_hash_fn ()
template<typename Key , typename Mapped , typename Hash_Fn , typename Eq_Fn
, typename _Alloc , bool Store_Hash, typename Comb_Hash_Fn , typename
Resize_Policy > Hash_Fn & __gnu_pbds::detail::cc_ht_map< Key, Mapped,
Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy
>::get_hash_fn ()
Return current hash_fn. π₯
get_hash_fn () const
template<typename Key , typename Mapped , typename Hash_Fn , typename Eq_Fn
, typename _Alloc , bool Store_Hash, typename Comb_Hash_Fn , typename
Resize_Policy > const Hash_Fn & __gnu_pbds::detail::cc_ht_map< Key,
Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy
>::get_hash_fn () const
Return current const hash_fn. π₯
get_resize_policy ()
template<typename Key , typename Mapped , typename Hash_Fn , typename Eq_Fn
, typename _Alloc , bool Store_Hash, typename Comb_Hash_Fn , typename
Resize_Policy > Resize_Policy & __gnu_pbds::detail::cc_ht_map< Key,
Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy
>::get_resize_policy ()
Return current resize_policy. πΈ
get_resize_policy () const
template<typename Key , typename Mapped , typename Hash_Fn , typename Eq_Fn
, typename _Alloc , bool Store_Hash, typename Comb_Hash_Fn , typename
Resize_Policy > const Resize_Policy & __gnu_pbds::detail::cc_ht_map<
Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn,
Resize_Policy >::get_resize_policy () const
Return current const resize_policy. πΈ
β¨ Author β¨
Generated automatically by Doxygen for libstdc++ from the source code.
xoxo bestie, source/version vibe islibstdc++and manual section3cxxβ generated automatically by Doxygen from the source code. The footer doesnβt hand us a date, but the energy is timeless ππ
π¦ where this page comes from
- debian trixie: libstdc++-12-doc 12.4.0-5
- debian trixie: libstdc++-13-doc 13.3.0-16
- debian trixie: libstdc++-14-doc 14.2.0-19
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2.1
- ubuntu noble: libstdc++-11-doc 11.4.0-9ubuntu1
- ubuntu noble: libstdc++-11-doc 11.5.0-1ubuntu1~24.04.1
- ubuntu noble: libstdc++-12-doc 12.3.0-17ubuntu1
- ubuntu noble: libstdc++-12-doc 12.4.0-2ubuntu1~24.04.1
- ubuntu noble: libstdc++-13-doc 13.2.0-23ubuntu4
- ubuntu noble: libstdc++-13-doc 13.3.0-6ubuntu2~24.04.1
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- ubuntu noble: libstdc++-14-doc 14.2.0-4ubuntu2~24.04.1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1.1
- ubuntu questing: libstdc++-12-doc 12.5.0-6ubuntu1
- ubuntu questing: libstdc++-13-doc 13.4.0-4ubuntu1
- ubuntu questing: libstdc++-14-doc 14.3.0-8ubuntu1
- ubuntu questing: libstdc++-15-doc 15.2.0-4ubuntu4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms