__GNU_PBDS::BASIC_HASH_TABLE(3cxx)
okay bestie, this is the __gnu_pbds::basic_hash_table page from the libstdc++ 3cxx manual π buckle up, itβs template-heavy but weβre gonna slay it.
π NAME π
__gnu_pbds::basic_hash_table< Key, Mapped, Hash_Fn, Eq_Fn,
Resize_Policy, Store_Hash, Tag, Policy_Tl, _Alloc >
β¨ SYNOPSIS β¨
First thing bestie, you gotta include this:
#include <assoc_container.hpp>
It inherits detail::container_base_dispatch::type. No cap.
Itβs also inherited by __gnu_pbds::cc_hash_table< Key, Mapped, Hash_Fn, Eq_Fn, Comb_Hash_Fn, Resize_Policy, Store_Hash, _Alloc >, and __gnu_pbds::gp_hash_table< Key, Mapped, Hash_Fn, Eq_Fn, Comb_Probe_Fn, Probe_Fn, Resize_Policy, Store_Hash, _Alloc >. Iconic family tree tbh π.
π οΈ Protected Member Functions π οΈ
These are the protected constructor vibes, all of them, exactly as written:
basic_hash_table (const basic_hash_table &other)
template<typename T0 > basic_hash_table (T0 t0)
template<typename T0 , typename T1 > basic_hash_table (T0 t0, T1 t1)
template<typename T0 , typename T1 , typename T2 > basic_hash_table (T0
t0, T1 t1, T2 t2)
template<typename T0 , typename T1 , typename T2 , typename T3 >
basic_hash_table (T0 t0, T1 t1, T2 t2, T3 t3)
template<typename T0 , typename T1 , typename T2 , typename T3 ,
typename T4 > basic_hash_table (T0 t0, T1 t1, T2 t2, T3 t3, T4 t4)
template<typename T0 , typename T1 , typename T2 , typename T3 ,
typename T4 , typename T5 > basic_hash_table (T0 t0, T1 t1, T2 t2,
T3 t3, T4 t4, T5 t5)
template<typename T0 , typename T1 , typename T2 , typename T3 ,
typename T4 , typename T5 , typename T6 > basic_hash_table (T0 t0,
T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6)
template<typename T0 , typename T1 , typename T2 , typename T3 ,
typename T4 , typename T5 , typename T6 , typename T7 >
basic_hash_table (T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6,
T7 t7)
template<typename T0 , typename T1 , typename T2 , typename T3 ,
typename T4 , typename T5 , typename T6 , typename T7 , typename T8
> basic_hash_table (T0 t0, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6,
T7 t7, T8 t8)
π¦ Detailed Description π¦
template<typename Key, typename Mapped, typename Hash_Fn, typename Eq_Fn,
typename Resize_Policy, bool Store_Hash, typename Tag, typename
Policy_Tl, typename _Alloc>
class __gnu_pbds::basic_hash_table< Key, Mapped, Hash_Fn, Eq_Fn,
Resize_Policy, Store_Hash, Tag, Policy_Tl, _Alloc >
Literally described as βA hashed container abstraction.β π
πΈ Template Parameters πΈ
Keyβ Key type.Mappedβ Map type.Hash_Fnβ Hashing functor.Eq_Fnβ Equal functor.Resize_Policyβ Resizes hash.Store_Hashβ Indicates whether the hash value will be stored along with each key.Tagβ Instantiating data structure type, seecontainer_tag.Policy_TLβ Policy typelist._Allocβ Allocator type.
Base is dispatched at compile time via Tag, from the following choices: cc_hash_tag, gp_hash_tag, and descendants of basic_hash_tag. Obsessed with this dispatch moment β¨.
Base choices are: detail::cc_ht_map, detail::gp_ht_map. Periodt.
π Author π
Generated automatically by Doxygen for libstdc++ from the source code.
this page is from the libstdc++ 3cxx manual, and the source text literally says βGenerated automatically by Doxygen for libstdc++ from the source code.β No date on this one, bestie β but the vibes are immaculate ππ
π¦ 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