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

◆ lower_bound_impl()

template<typename Iterator, typename T, typename Compare>
Iterator fl::detail::lower_bound_impl ( Iterator first,
Iterator last,
const T & value,
Compare comp )

Definition at line 382 of file algorithm.h.

382 {
383 auto count = last - first;
384 while (count > 0) {
385 auto step = count / 2;
386 Iterator it = first + step;
387 if (comp(*it, value)) {
388 first = ++it;
389 count -= step + 1;
390 } else {
391 count = step;
392 }
393 }
394 return first;
395}

Referenced by merge_inplace().

+ Here is the caller graph for this function: