FastLED 3.9.15
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 1046 of file vector.h.

1046 {
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 }
vector< T >::iterator iterator
Definition vector.h:983
vector< T > mArray
Definition vector.h:975

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

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

+ Here is the caller graph for this function: