11 #ifndef TLX_ALGORITHM_IS_SORTED_CMP_HEADER 12 #define TLX_ALGORITHM_IS_SORTED_CMP_HEADER 25 template <
typename ForwardIterator,
typename Comparator>
29 ForwardIterator next = first;
30 while (++next != last) {
31 if (cmp(*first, *next) > 0)
43 template <
typename ForwardIterator,
typename Comparator>
53 #endif // !TLX_ALGORITHM_IS_SORTED_CMP_HEADER bool is_sorted_cmp(ForwardIterator first, ForwardIterator last, Comparator cmp)
Checks if a range is sorted using a three-way Comparator (with memcmp() semantics).
ForwardIterator is_sorted_until_cmp(ForwardIterator first, ForwardIterator last, Comparator cmp)
Checks if a range is sorted using a three-way Comparator (with memcmp() semantics).