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 726 of file vector.h.

726 {
727 iterator first = mArray.begin();
728 iterator last = mArray.end();
729
730 while (first != last) {
731 iterator mid = first + (last - first) / 2;
732
733 if (mLess(*mid, value)) {
734 first = mid + 1;
735 } else {
736 last = mid;
737 }
738 }
739 return first;
740 }
HeapVector< T > mArray
Definition vector.h:669
HeapVector< T >::iterator iterator
Definition vector.h:674

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: