FastLED 3.10.8
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 447 of file algorithm.h.

447 {
448 auto count = last - first;
449 while (count > 0) {
450 auto step = count / 2;
451 Iterator it = first + step;
452 if (comp(*it, value)) {
453 first = ++it;
454 count -= step + 1;
455 } else {
456 count = step;
457 }
458 }
459 return first;
460}
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: