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

Method CalculateLoadFactor

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

Calculate the current load factor and return it.

Source from the content-addressed store, hash-verified

466
467 // Calculate the current load factor and return it.
468 double CalculateLoadFactor() const {
469 return static_cast<double>(Size()) / static_cast<double>(NumBuckets());
470 }
471
472 // Make sure that everything reinserts in the right spot. Returns the number of errors.
473 size_t Verify() NO_THREAD_SAFETY_ANALYSIS {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected