FastLED 3.9.15
Loading...
Searching...
No Matches

◆ heapify()

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

Definition at line 325 of file algorithm.h.

325 {
326 Iterator start = first + (last - first - 2) / 2;
327
328 while (true) {
329 sift_down(first, start, last - 1, comp);
330 if (start == first) {
331 break;
332 }
333 --start;
334 }
335}
void sift_down(Iterator first, Iterator start, Iterator end, Compare comp)
Definition algorithm.h:300

References sift_down().

Referenced by heap_sort().

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