MCPcopy Create free account
hub / github.com/NativeScript/android / load_factor

Method load_factor

test-app/runtime/src/main/cpp/robin_hood.h:2126–2129  ·  view source on GitHub ↗

Average number of elements per bucket. Since we allow only 1 per bucket

Source from the content-addressed store, hash-verified

2124
2125 // Average number of elements per bucket. Since we allow only 1 per bucket
2126 float load_factor() const noexcept { // NOLINT(modernize-use-nodiscard)
2127 ROBIN_HOOD_TRACE(this)
2128 return static_cast<float>(size()) / static_cast<float>(mMask + 1);
2129 }
2130
2131 ROBIN_HOOD(NODISCARD) size_t mask() const noexcept {
2132 ROBIN_HOOD_TRACE(this)

Callers

nothing calls this directly

Calls 1

sizeFunction · 0.50

Tested by

no test coverage detected