FastLED 3.10.10
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 479 of file algorithm.h.

479 {
480 auto count = last - first;
481 while (count > 0) {
482 auto step = count / 2;
483 Iterator it = first + step;
484 if (comp(*it, value)) {
485 first = ++it;
486 count -= step + 1;
487 } else {
488 count = step;
489 }
490 }
491 return first;
492}
constexpr int type_rank< T >::value
constexpr enable_if< is_fixed_point< T >::value, T >::type step(T edge, T x) FL_NO_EXCEPT

References fl::FL_NO_EXCEPT, fl::step(), and fl::type_rank< T >::value.

Referenced by fl::adl_barrier::lower_bound(), fl::adl_barrier::lower_bound(), and merge_inplace().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: