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

Method count

src/fl/stl/multi_set.h:283–290  ·  view source on GitHub ↗

Lookup

Source from the content-addressed store, hash-verified

281
282 // Lookup
283 fl::size count(const Key& key) const {
284 auto range = equal_range(key);
285 fl::size count = 0;
286 for (auto it = range.first; it != range.second; ++it) {
287 ++count;
288 }
289 return count;
290 }
291
292 iterator find(const Key& key) {
293 ValueWithId search_key(key, 0);

Callers

nothing calls this directly

Calls 1

equal_rangeFunction · 0.85

Tested by

no test coverage detected