__gnu_pbds::has...ime_size_policy(3cxx)

✨ NAME ✨

This is the __gnu_pbds::hash_prime_size_policy page from the libstdc++ manual β€” the (3cxx) page, header tag and all (__gnu_pbds::has...ime_size_policy(3cxx), truncated bestie, not me making that up πŸ’…).

__gnu_pbds::hash_prime_size_policy β€” a size policy whose sequence of sizes forms a nearly-exponential sequence of primes. No cap, it's giving prime-size energy πŸ”₯.


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <hash_policy.hpp>

🫢 Public Types

  • typedef std::size_t size_type β€” size type, iconic and simple ✨

πŸ’– Public Member Functions

  • hash_prime_size_policy (size_type start_size=8) β€” default constructor, or constructor taking a start_size; the policy will use the sequence of sizes approximately start_size, start_size* 2, start_size* 2^2, ... 🌸
  • void swap (hash_prime_size_policy &other) β€” the swap signature is just this, periodt πŸ’«

πŸŽ€ Protected Member Functions

  • size_type get_nearest_larger_size (size_type size) const β€” protected helper signature, exactly as listed πŸ”’
  • size_type get_nearest_smaller_size (size_type size) const β€” protected helper signature, exactly as listed πŸ”’

πŸ’« Detailed Description πŸ’«

A size policy whose sequence of sizes forms a nearly-exponential sequence of primes. That's the whole vibe: sizes, primes, nearly exponential, slay 🌈.


🧚 Member Typedef Documentation 🧚

typedef std::size_t __gnu_pbds::hash_prime_size_policy::size_type

Size type. Tiny detail, big main-character energy πŸ‘‘.


πŸ’œ Constructor & Destructor Documentation πŸ’œ

__gnu_pbds::hash_prime_size_policy::hash_prime_size_policy (size_type start_size = 8)

Default constructor, or constructor taking a start_size. The policy will use the sequence of sizes approximately start_size, start_size* 2, start_size* 2^2, ... β€” yes bestie, that exact sequence, don't come for me πŸ˜­πŸ’–.


πŸ“ Author πŸ“

Generated automatically by Doxygen for libstdc++ from the source code.


okay that's the whole page, bestie 🫢 β€” sign-off time: source/version is the libstdc++ manual footer tag libst__gnu_pbds::has...ime_size_policy(3cxx), and the date slot is literally empty in this copy, so no date shown, iykyk πŸŽ€πŸ’œ