Add initial tests for rehash(), reserve()

This commit is contained in:
Christian Mazakas
2023-05-10 13:22:02 -07:00
parent c90b72a643
commit 21afc69894
4 changed files with 196 additions and 1 deletions

View File

@@ -742,6 +742,18 @@ namespace boost {
/// Hash Policy
///
size_type bucket_count() const noexcept {
return table_.capacity();
}
float load_factor() const noexcept { return table_.load_factor(); }
float max_load_factor() const noexcept
{
return table_.max_load_factor();
};
void max_load_factor(float) {}
size_type max_load() const noexcept { return table_.max_load(); }
void rehash(size_type n) { table_.rehash(n); }
void reserve(size_type n) { table_.reserve(n); }