FastLED 3.9.15
Loading...
Searching...
No Matches

◆ lower_bound() [1/2]

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

Definition at line 680 of file vector.h.

680 {
681 iterator first = mArray.begin();
682 iterator last = mArray.end();
683
684 while (first != last) {
685 iterator mid = first + (last - first) / 2;
686
687 if (mLess(*mid, value)) {
688 first = mid + 1;
689 } else {
690 last = mid;
691 }
692 }
693 return first;
694 }
HeapVector< T > mArray
Definition vector.h:623
HeapVector< T >::iterator iterator
Definition vector.h:628

Referenced by fl::iterator< Pair, PairLess >::find(), fl::iterator< Pair, PairLess >::insert(), and fl::iterator< Pair, PairLess >::lower_bound().

+ Here is the caller graph for this function: