__gnu_pbds::hash_exponential_size_policy(3cxx)

__gnu_pbds::hash_exponential_size_policy3cxx

A size policy whose sequence of sizes form an exponential sequence (typically powers of 2.

Usage

#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

Public Member Functions

hash_exponential_size_policy (size_type start_size=8, size_type grow_factor=2)
Default constructor, or onstructor 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, ... void swap (hash_exponential_size_policy< Size_Type > &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

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.

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 onstructor 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, ...

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.