MCPcopy Create free account
hub / github.com/FastLED/FastLED / heapify

Function heapify

src/fl/stl/algorithm.h:385–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383
384template <typename Iterator, typename Compare>
385void heapify(Iterator first, Iterator last, Compare comp) FL_NOEXCEPT {
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}
396
397template <typename Iterator, typename Compare>
398void heap_sort(Iterator first, Iterator last, Compare comp) FL_NOEXCEPT {

Callers 1

heap_sortFunction · 0.85

Calls 1

sift_downFunction · 0.70

Tested by

no test coverage detected