A size policy whose sequence of sizes form a nearly-exponential sequence of primes.
Type | Definition | Description |
size_type |
size_t |
Size type. |
Method | Description |
inline void swap (hash_prime_size_policy &r_other) |
Swaps content. |
Method | Description |
inline size_type get_init_size (size_type suggested_size) const |
Given suggested_size, a suggested size, returns an initial size of the container related to the initial size. |
inline size_type get_nearest_larger_size (size_type cur_size) const |
Given cur_size, the current size, returns a size that is larger. |
inline size_type get_nearest_smaller_size (size_type cur_size) const |
Given cur_size, the current size, returns a size that is smaller. |