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

Function lower_bound

src/fl/stl/vector.h:1046–1058  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1044 }
1045
1046 iterator lower_bound(const T &value) FL_NOEXCEPT {
1047 iterator first = mArray.begin();
1048 iterator last = mArray.end();
1049 while (first != last) {
1050 iterator mid = first + (last - first) / 2;
1051 if (mLess(*mid, value)) {
1052 first = mid + 1;
1053 } else {
1054 last = mid;
1055 }
1056 }
1057 return first;
1058 }
1059
1060 const_iterator lower_bound(const T &value) const FL_NOEXCEPT {
1061 return const_cast<SortedHeapVector *>(this)->lower_bound(value);

Callers 15

findMethod · 0.70
equal_rangeMethod · 0.70
insertMethod · 0.70
equal_rangeMethod · 0.70
equal_rangeMethod · 0.70
flat_mapClass · 0.70
findMethod · 0.70
equal_rangeMethod · 0.70
insertMethod · 0.70
insertFunction · 0.70
findFunction · 0.70
equal_rangeMethod · 0.50

Calls 3

beginMethod · 0.45
endMethod · 0.45
lower_boundMethod · 0.45

Tested by

no test coverage detected