is_sorted_constexpr overloads
Declared in <llvm/ADT/STLExtras.h>
Return true if Range is sorted under comparator C.
template<
typename R,
typename Cmp = std::less<>>
constexpr
bool
is_sorted_constexpr(
R&& Range,
Cmp C = Cmp{});
» more...
Check whether []First, Last) is sorted under comparator C.
template<
typename ForwardIterator,
typename Cmp = std::less<>>
constexpr
bool
is_sorted_constexpr(
ForwardIterator First,
ForwardIterator Last,
Cmp C = Cmp{});
» more...
Range is sorted under comparator C.First, Last) is sorted under C.| Name | Description |
|---|---|
| Range | Range to test. |
| C | Comparison function object. |
| First | Beginning of the range. |
| Last | End of the range. |