hash_exponential_size_policy
 Interface
A size policy whose sequence of sizes form an exponential sequence (typically powers of 2)
../../../../include/ext/pb_assoc/hash_policy.hpphash_policy.hpp #link1Template parameters.
Public Types and Constants:
#link2General definitions.
Public Methods:
#link3Constructors, destructors, and related methods.
Protected Methods:
#link4Size methods
Template parameters.
Parameter Description Default Value Size_Type Size type.
size_t
General definitions.
Type Definition Description size_type #Size_Type3735929483Size_Type Size type.
Constructors, destructors, and related methods.
Method Description   hash_exponential_size_policy
  (
#size_type3735929547size_type  start_size = 8,
    
#size_type3735929547size_type  grow_factor = 2) Default constructor, or onstructor taking a start_size, a start size and grow_factor, a growth 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 &r_other) Swaps content.
Size methods
Method Description #size_type3735929547size_type   get_init_size
  (
#size_type3735929547size_type  suggested_size) const Given suggested_size, a suggested size, returns an initial size of the container related to the initial size.
#size_type3735929547size_type   get_nearest_larger_size
  (
#size_type3735929547size_type  cur_size) const Given cur_size, the current size, returns a size that is larger.
#size_type3735929547size_type   get_nearest_smaller_size
  (
#size_type3735929547size_type  cur_size) const Given cur_size, the current size, returns a size that is smaller.
