From 8dbeee4d9a7bd20147da9638cef702107774a80b Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Tue, 10 Jun 2025 01:52:58 +0000 Subject: [PATCH] fix(kernel/std): :art: reorder is_sorted_until function declaration --- Kernel/include_std/algorithm | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Kernel/include_std/algorithm b/Kernel/include_std/algorithm index 3404c007..ed1d7282 100644 --- a/Kernel/include_std/algorithm +++ b/Kernel/include_std/algorithm @@ -444,15 +444,6 @@ namespace std }; } - template - ForwardIt is_sorted_until(ForwardIt first, ForwardIt last) - { - return is_sorted_until(first, last, detail::__algo_less<>()); - } - - template - ForwardIt is_sorted_until(ExecutionPolicy &&policy, ForwardIt first, ForwardIt last); - template ForwardIt is_sorted_until(ForwardIt first, ForwardIt last, Compare comp) { @@ -469,6 +460,15 @@ namespace std return last; } + template + ForwardIt is_sorted_until(ForwardIt first, ForwardIt last) + { + return is_sorted_until(first, last, detail::__algo_less<>()); + } + + template + ForwardIt is_sorted_until(ExecutionPolicy &&policy, ForwardIt first, ForwardIt last); + template ForwardIt is_sorted_until(ExecutionPolicy &&policy, ForwardIt first, ForwardIt last, Compare comp);