__GNU_PBDS::HASH_EXPONENTIAL_SIZE_POLICY(3cxx)
π NAME π
__gnu_pbds::hash_exponential_size_policy< Size_Type > β a size policy whose sequence of sizes forms an exponential sequence (typically powers of 2). Bestie, this is the 3cxx manual page for it, and yes, we're getting into template-policy territory. Slay. β¨
π¦ SYNOPSIS π¦
#include <hash_policy.hpp>
- Inherited by
__gnu_pbds::hash_standard_resize_policy< Size_Policy, Trigger_Policy, External_Size_Access, Size_Type >.
π Public Types π
typedef Size_Type size_typeβ the size type, iconic as always π
πΈ Public Member Functions πΈ
hash_exponential_size_policy (size_type start_size=8, size_type grow_factor=2)β default constructor, or constructor taking astart_size, or constructor taking a start size andgrow_factor. The policy will use the sequence of sizesstart_size,start_size* grow_factor,start_size* grow_factor^2, ... π«void swap (hash_exponential_size_policy< Size_Type > &other)β signature only on this page; no extra description was given, bestie.
π¦ Protected Member Functions π¦
size_type get_nearest_larger_size (size_type size) constβ protected VIP function, signature only on this page.size_type get_nearest_smaller_size (size_type size) constβ protected VIP function, signature only on this page.
β¨ Detailed Description β¨
template<typename Size_Type = std::size_t>
class __gnu_pbds::hash_exponential_size_policy< Size_Type >
"A size policy whose sequence of sizes form an exponential sequence (typically powers of 2."
That's the quote from the page, unmatched parenthesis and all. We keep the details, not the grammar police energy. π
π Constructor & Destructor Documentation π
template<typename Size_Type = std::size_t>
__gnu_pbds::hash_exponential_size_policy< Size_Type >::hash_exponential_size_policy (size_type start_size = 8, size_type grow_factor = 2)
Default constructor, or constructor taking a start_size, or constructor taking a start size and grow_factor. The policy will use the sequence of sizes start_size, start_size* grow_factor, start_size* grow_factor^2, ... π«Ά
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. Not me hand-writing it in the group chat, fr fr. π
okay that's the whole page, bestie π Source/version deets: generated automatically by Doxygen for libstdc++ from the source code; the footer line is libstd__gnu_pbds::ha...cy< Size_Type >(3cxx), and no date is shown on the page. Bye π
π¦ 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