| 580 | // Stable sort function with custom comparator (using merge sort) |
| 581 | template <typename Iterator, typename Compare> |
| 582 | void stable_sort(Iterator first, Iterator last, Compare comp) FL_NOEXCEPT { |
| 583 | if (first == last || first + 1 == last) { |
| 584 | return; // Already sorted or empty |
| 585 | } |
| 586 | |
| 587 | detail::mergesort_impl(first, last, comp); |
| 588 | } |
| 589 | |
| 590 | // Stable sort function with default comparator |
| 591 | template <typename Iterator> |
no test coverage detected