[#BloombergLP-bdlc-operator_dec-0dd]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::operator&hyphen;&hyphen;
:relfileprefix: ../../
:mrdocs:

Decrement `iterator` and return its prior value&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
xref:BloombergLP/bdlc/CompactedArray_ConstIterator.adoc[bdlc::CompactedArray&lowbar;ConstIterator&lt;TYPE&gt;]
operator&hyphen;&hyphen;(
    xref:BloombergLP/bdlc/CompactedArray_ConstIterator.adoc[CompactedArray&lowbar;ConstIterator&lt;TYPE&gt;]& iterator,
    int unused);
----

== Description

Decrement the specified `iterator` to refer to the previous location in the referenced array, and return an iterator referring to the original location (_before_ the decrementation)&period; The returned iterator, `it`, referencing a `CompactedArray` `array`, remains valid as long as `0 &lt;&equals; it &hyphen; array&period;begin() &lt;&equals; array&period;length()`&period; The behavior is undefined unless, on entry, `CompactedArray&lowbar;ConstIterator() !&equals; iterator` and `0 &lt; iterator &hyphen; array&period;begin()`&period;

== Return Value

iterator referring to the prior position

== Parameters

[cols="1,4"]
|===
| Name| Description
| *iterator*
| iterator to decrement
| *unused*
| unused postfix discriminator
|===


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