FastLED 3.10.8
Loading...
Searching...
No Matches

◆ lower_bound() [2/2]

template<typename T, typename LessThan = fl::less<T>>
iterator fl::SortedHeapVector< T, LessThan >::lower_bound ( const T & value)
inline

Definition at line 1050 of file vector.h.

1050 {
1051 iterator first = mArray.begin();
1052 iterator last = mArray.end();
1053 while (first != last) {
1054 iterator mid = first + (last - first) / 2;
1055 if (mLess(*mid, value)) {
1056 first = mid + 1;
1057 } else {
1058 last = mid;
1059 }
1060 }
1061 return first;
1062 }
vector< T >::iterator iterator
Definition vector.h:987
vector< T > mArray
Definition vector.h:979

References fl::FL_NO_EXCEPT, mArray, mLess, and fl::type_rank< T >::value.

Referenced by find(), insert(), and lower_bound().

+ Here is the caller graph for this function: