__GNU_PBDS::DETAIL::CC_HT_MAP(3)
πΈ NAME πΈ
okay so bestie, welcome to a page from the Library Functions Manual, section 3 (that's the library-functions girlies, iykyk π ), and the main character today is:
__gnu_pbds::detail::cc_ht_map< Key, Mapped, Hash_Fn, Eq_Fn, _Alloc, Store_Hash, Comb_Hash_Fn, Resize_Policy >
she's a collision-chaining hash-based container and honestly? she's iconic. π
π SYNOPSIS π
#include <cc_ht_map_.hpp>
Inherits __gnu_pbds::detail::hash_eq_fn< Key, Eq_Fn, _Alloc, Store_Hash >, , and __gnu_pbds::detail::ranged_hash_fn< Key, Hash_Fn, _Alloc, Comb_Hash_Fn, Store_Hash >.
(yes bestie, that stray comma-comma is literally in the original, we do not touch it, we respect the source π)
β¨ Public Types β¨
enum { store_hash }β value stores hash, true or false. fr fr, that's the whole bit. π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
thirty whole typedefs. she said "let me be thorough" and honestly? ate. π
π¦ 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 >
"A collision-chaining hash-based container."
that's the whole vibe, bestie. that's what she is. no notes. β¨
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 [inline], [nodiscard]
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
true if size() == 0. bestie if this returns true, the container is empty, that's it, that's the tea. π
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.
and that's the whole page bestie, no cap. she came from the libstdc++ girlies, built by Doxygen straight off the source, and she's out here doing collision-chaining hash-based container things. slay, stay hashed, and remember: the facts never change, only the vibe. πβ¨ππ¦
π¦ where this page comes from
- arch rolling: gcc 16.2.1+r23+gd564253eb6c8-1 Β· GPL-3.0-or-later WITH GCC-exception-3.1 AND GFDL-1.3-or-later
- fedora 44: libstdc++-docs 16.0.1-0.10.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
- fedora 44: libstdc++-docs 16.2.1-2.fc44
- fedora 44: libstdc++-docs 16.2.1-3.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms