MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / Expand

Method Expand

Bcore/src/main/cpp/base/hash_set.h:607–611  ·  view source on GitHub ↗

Expand the set based on the load factors.

Source from the content-addressed store, hash-verified

605
606 // Expand the set based on the load factors.
607 void Expand() {
608 size_t min_index = static_cast<size_t>(Size() / min_load_factor_);
609 // Resize based on the minimum load factor.
610 Resize(min_index);
611 }
612
613 // Expand / shrink the table to the new specified size.
614 void Resize(size_t new_size) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected