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

Name

Description

first

beginning of the range to check

last

end of the range to check

Created with MrDocs