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

385 {
386 Iterator start = first + (last - first - 2) / 2;
387
388 while (true) {
389 sift_down(first, start, last - 1, comp);
390 if (start == first) {
391 break;
392 }
393 --start;
394 }
395}
void sift_down(Iterator first, Iterator start, Iterator end, Compare comp) FL_NOEXCEPT
Definition algorithm.h:360

References FL_NOEXCEPT, and sift_down().

Referenced by heap_sort().

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