[#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&period; The behavior is undefined unless `first &lt;&equals; last`&period;

== Synopsis

Declared in `&lt;bdlc&lowbar;packedintarrayutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
static
bool
isSorted(
    xref:BloombergLP/bdlc/PackedIntArrayConstIterator.adoc[PackedIntArrayConstIterator&lt;TYPE&gt;] first,
    xref:BloombergLP/bdlc/PackedIntArrayConstIterator.adoc[PackedIntArrayConstIterator&lt;TYPE&gt;] last);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
