| 562 | // Sort function with custom comparator (using quicksort) |
| 563 | template <typename Iterator, typename Compare> |
| 564 | void sort(Iterator first, Iterator last, Compare comp) FL_NOEXCEPT { |
| 565 | if (first == last || first + 1 == last) { |
| 566 | return; // Already sorted or empty |
| 567 | } |
| 568 | |
| 569 | detail::quicksort_impl(first, last, comp); |
| 570 | } |
| 571 | |
| 572 | // Sort function with default comparator |
| 573 | template <typename Iterator> |
no test coverage detected