Return true if the specified range is sorted or empty.
Declared in <bdlc_packedintarrayutil.h>
template<class TYPE>
static
bool
isSorted(
PackedIntArrayConstIterator<TYPE> first,
PackedIntArrayConstIterator<TYPE> last);
Return true if the range from the specified first (inclusive) to the specified last (exclusive) is sorted or empty, and false otherwise. The behavior is undefined unless first <= last.
true if the range is sorted or empty, and false otherwise
| Name | Description |
|---|---|
| first | beginning of the range to check |
| last | end of the range to check |