FastLED 3.10.10
Loading...
Searching...
No Matches

◆ heapify()

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

Definition at line 400 of file algorithm.h.

400 {
401 Iterator start = first + (last - first - 2) / 2;
402
403 while (true) {
404 detail::sift_down(first, start, last - 1, comp);
405 if (start == first) {
406 break;
407 }
408 --start;
409 }
410}
void sift_down(Iterator first, Iterator start, Iterator end, Compare comp) FL_NO_EXCEPT
Definition algorithm.h:374

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: