FastLED 3.10.8
Loading...
Searching...
No Matches

◆ heapify()

template<typename Iterator, typename Compare>
void fl::detail::heapify ( Iterator first,
Iterator last,
Compare comp )

Definition at line 390 of file algorithm.h.

390 {
391 Iterator start = first + (last - first - 2) / 2;
392
393 while (true) {
394 sift_down(first, start, last - 1, comp);
395 if (start == first) {
396 break;
397 }
398 --start;
399 }
400}
void sift_down(Iterator first, Iterator start, Iterator end, Compare comp) FL_NO_EXCEPT
Definition algorithm.h:365

References fl::FL_NO_EXCEPT, and sift_down().

Referenced by heap_sort().

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