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

◆ lower_bound() [1/2]

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

Definition at line 571 of file vector.h.

571 {
572 iterator first = mArray.begin();
573 iterator last = mArray.end();
574
575 while (first != last) {
576 iterator mid = first + (last - first) / 2;
577
578 if (mLess(*mid, value)) {
579 first = mid + 1;
580 } else {
581 last = mid;
582 }
583 }
584 return first;
585 }
HeapVector< T > mArray
Definition vector.h:511
HeapVector< T >::iterator iterator
Definition vector.h:516

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: