[#BloombergLP-bdlc-PackedIntArrayUtil-isSorted] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/PackedIntArrayUtil.adoc[PackedIntArrayUtil]::isSorted :relfileprefix: ../../../ :mrdocs: 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`. == Synopsis Declared in `<bdlc_packedintarrayutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> static bool isSorted( xref:BloombergLP/bdlc/PackedIntArrayConstIterator.adoc[PackedIntArrayConstIterator<TYPE>] first, xref:BloombergLP/bdlc/PackedIntArrayConstIterator.adoc[PackedIntArrayConstIterator<TYPE>] last); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#