From fa2e37f6033ebf26bdff7f025fc7f11bea8fa850 Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Sat, 10 May 2025 04:34:50 +0000 Subject: [PATCH] feat(kernel/std): :sparkles: add stub lexicographical_compare and lexicographical_compare_three_way functions --- Kernel/include_std/algorithm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Kernel/include_std/algorithm b/Kernel/include_std/algorithm index f6028bc1..48c67276 100644 --- a/Kernel/include_std/algorithm +++ b/Kernel/include_std/algorithm @@ -362,4 +362,22 @@ namespace std template void sort(ExecutionPolicy &&policy, RandomIt first, RandomIt last, Compare comp); + + template + constexpr bool lexicographical_compare(InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2); + + template + bool lexicographical_compare(ExecutionPolicy &&policy, ForwardIt1 first1, ForwardIt1 last1, ForwardIt2 first2, ForwardIt2 last2); + + template + constexpr bool lexicographical_compare(InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, Compare comp); + + template + bool lexicographical_compare(ExecutionPolicy &&policy, ForwardIt1 first1, ForwardIt1 last1, ForwardIt2 first2, ForwardIt2 last2, Compare comp); + + template + constexpr auto lexicographical_compare_three_way(InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, Cmp comp) -> decltype(comp(*first1, *first2)); + + template + constexpr auto lexicographical_compare_three_way(InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2); }