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); }