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

Function remove

src/fl/stl/unordered_map.h:542–550  ·  view source on GitHub ↗

remove key; returns true if removed

Source from the content-addressed store, hash-verified

540
541 // remove key; returns true if removed
542 bool remove(const Key &key) {
543 auto idx = find_index(key);
544 if (idx == npos())
545 return false;
546 mark_deleted(idx);
547 --_size;
548 ++_tombstones;
549 return true;
550 }
551
552 bool erase(const Key &key) { return remove(key); }
553

Callers 1

eraseFunction · 0.70

Calls 2

find_indexFunction · 0.85
mark_deletedFunction · 0.85

Tested by

no test coverage detected