BloombergLP::bdlc::PackedIntArrayUtil::isSorted

Return true if the specified range is sorted or empty.

Synopsis

Declared in <bdlc_packedintarrayutil.h>

template<class TYPE>
static
bool
isSorted(
    PackedIntArrayConstIterator<TYPE> first,
    PackedIntArrayConstIterator<TYPE> last);

Description

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.

Return Value

true if the range is sorted or empty, and false otherwise

Parameters

NameDescription
firstbeginning of the range to check
lastend of the range to check