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

Function sort_small

src/fl/stl/algorithm.h:612–617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

610// Use `fl::sort` (quicksort) when the container is unbounded or large.
611template <typename Iterator, typename Compare>
612void sort_small(Iterator first, Iterator last, Compare comp) FL_NOEXCEPT {
613 if (first == last || first + 1 == last) {
614 return; // Already sorted or empty
615 }
616 detail::insertion_sort(first, last, comp);
617}
618
619template <typename Iterator>
620void sort_small(Iterator first, Iterator last) FL_NOEXCEPT {

Callers 3

addDriverMethod · 0.85
setDriverPriorityMethod · 0.85
beginTransmissionMethod · 0.85

Calls 1

insertion_sortFunction · 0.85

Tested by

no test coverage detected