MCPcopy Create free account
hub / github.com/FastLED/FastLED / needs_rehash

Function needs_rehash

src/fl/stl/unordered_map.h:318–320  ·  view source on GitHub ↗

returns true if (size + tombs)/capacity > _max_load/256

Source from the content-addressed store, hash-verified

316
317 // returns true if (size + tombs)/capacity > _max_load/256
318 bool needs_rehash() const {
319 return NeedsRehash(_size, _buckets.size(), _tombstones, mLoadFactor);
320 }
321
322 // insert or overwrite - returns pair<iterator, bool>
323 // iterator points to element, bool is true if inserted, false if updated

Callers 4

insertFunction · 0.85
insert_or_assignFunction · 0.85
try_emplaceFunction · 0.85
unordered_map.hFile · 0.85

Calls 2

NeedsRehashFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected