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

Function count

src/fl/stl/unordered_map.h:656–658  ·  view source on GitHub ↗

count() - returns 0 or 1 (unordered_map has unique keys)

Source from the content-addressed store, hash-verified

654
655 // count() - returns 0 or 1 (unordered_map has unique keys)
656 fl::size count(const Key &key) const {
657 return contains(key) ? 1 : 0;
658 }
659
660 // equal_range() - returns pair of iterators [it, it+1) or [end, end)
661 pair<iterator, iterator> equal_range(const Key &key) {

Callers 3

anyMethod · 0.85
noneMethod · 0.85
bitset_dynamicClass · 0.85

Calls 1

containsFunction · 0.85

Tested by

no test coverage detected