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 442 of file algorithm.h.

442 {
443 auto count = last - first;
444 while (count > 0) {
445 auto step = count / 2;
446 Iterator it = first + step;
447 if (comp(*it, value)) {
448 first = ++it;
449 count -= step + 1;
450 } else {
451 count = step;
452 }
453 }
454 return first;
455}
constexpr int type_rank< T >::value
constexpr enable_if< is_fixed_point< T >::value, T >::type step(T edge, T x) FL_NOEXCEPT

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

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

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