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

Method count

tests/misc/containers.cpp:222–224  ·  view source on GitHub ↗

Normalize count to use has()

Source from the content-addressed store, hash-verified

220
221 // Normalize count to use has()
222 fl::size count(const Key& key) const {
223 return Base::has(key) ? 1 : 0;
224 }
225
226 // Erase is now properly implemented in unsorted_map_fixed base class
227 // This just calls the base implementation which actually removes the element

Callers 15

test_map_key_lookupFunction · 0.45
FL_TEST_FILEFunction · 0.45
FL_TEST_FILEFunction · 0.45
flat_map.cppFile · 0.45
FL_TEST_FILEFunction · 0.45
flat_set.cppFile · 0.45
FL_TEST_FILEFunction · 0.45
FL_TEST_FILEFunction · 0.45
FL_TEST_FILEFunction · 0.45
FL_TEST_FILEFunction · 0.45
FL_TEST_FILEFunction · 0.45
traverse_grid.hppFile · 0.45

Calls 1

hasFunction · 0.85

Tested by 4

test_map_key_lookupFunction · 0.36
test_map_countFunction · 0.36
run_allFunction · 0.36