---
name: "Internal_prime_rehash_policy"
section: "3"
platform: "linux"
package: "libstdc++6-4.1-doc"
version: "4.1.1-21"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/Internal_prime_rehash_policy"
---

# Internal\_prime\_rehash\_policy(3)

## NAME

Internal::prime\_rehash\_policy -

## SYNOPSIS

## Detailed Description

Definition at line 439 of file hashtable.

### Public Member Functions

std::size\_t **bkt\_for\_elements** (std::size\_t n) const \
 float **max\_load\_factor** () const\
 **std::pair**\< bool, std::size\_t \> **need\_rehash** (std::size\_t n\_bkt, std::size\_t n\_elt, std::size\_t n\_ins) const \
 std::size\_t **next\_bkt** (std::size\_t n) const \
 **prime\_rehash\_policy** (float z=1.0)\

### Public Attributes

float **m\_growth\_factor**\
 float **m\_max\_load\_factor**\
 std::size\_t **m\_next\_resize**\

## Author

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