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

Method ShrinkToMaximumLoad

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

Source from the content-addressed store, hash-verified

430 }
431
432 void ShrinkToMaximumLoad() {
433 Resize(Size() / max_load_factor_);
434 }
435
436 // Reserve enough room to insert until Size() == num_elements without requiring to grow the hash
437 // set. No-op if the hash set is already large enough to do this.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected