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

Function equal_range

src/fl/stl/unordered_map.h:661–669  ·  view source on GitHub ↗

equal_range() - returns pair of iterators [it, it+1) or [end, end)

Source from the content-addressed store, hash-verified

659
660 // equal_range() - returns pair of iterators [it, it+1) or [end, end)
661 pair<iterator, iterator> equal_range(const Key &key) {
662 iterator it = find(key);
663 if (it == end()) {
664 return {end(), end()};
665 }
666 iterator next = it;
667 ++next;
668 return {it, next};
669 }
670
671 pair<const_iterator, const_iterator> equal_range(const Key &key) const {
672 const_iterator it = find(key);

Callers 4

eraseMethod · 0.85
countMethod · 0.85
eraseMethod · 0.85
countMethod · 0.85

Calls 2

findFunction · 0.70
endFunction · 0.70

Tested by

no test coverage detected