__gnu_pbds::hash_prime_size_policy(3cxx)

__gnu_pbds::hash_prime_size_policy3cxx

A size policy whose sequence of sizes form a nearly-exponential sequence of primes.

Usage

#include <hash_policy.hpp>

Public Types

typedef std::size_t size_type
Size type.

Public Member Functions

hash_prime_size_policy (size_type start_size=8)
Default constructor, or onstructor 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)

Protected Member Functions

size_type get_nearest_larger_size (size_type size) const
size_type get_nearest_smaller_size (size_type size) const

Detailed Description

A size policy whose sequence of sizes form a nearly-exponential sequence of primes.

Member Typedef Documentation

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

Size type.

Constructor & Destructor Documentation

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

Default constructor, or onstructor taking a start_size The policy will use the sequence of sizes approximately start_size, start_size* 2, start_size* 2^2, ...

Releases

7 releases since Debian 7 (Wheezy); the text changed 6 times.

  1. 7
  2. 8
  3. 9
  4. 10
  5. 11
  6. 12
  7. 13

Author

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

From libstdc++-12-doc 12.4.0-5 in Debian 13 (Trixie). Also shipped by libstdc++-13-doc, libstdc++-14-doc. Parsed by carta from the page's man source.