[#BloombergLP-bdlc-operator_inc-0c]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::operator&plus;&plus;
:relfileprefix: ../../
:mrdocs:

Increment operators

== Synopses

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

Advance `iterator` and return its prior value (see free `operator&plus;&plus;`)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;&gt;
xref:BloombergLP/bdlc/CompactedArray_ConstIterator.adoc[CompactedArray&lowbar;ConstIterator]
xref:BloombergLP/bdlc/operator_inc-0b.adoc[operator&plus;&plus;](
    xref:BloombergLP/bdlc/CompactedArray_ConstIterator.adoc[CompactedArray&lowbar;ConstIterator]&,
    int);
----

[.small]#xref:BloombergLP/bdlc/operator_inc-0b.adoc[_» more&period;&period;&period;_]#


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;&gt;
xref:BloombergLP/bdlc/PackedIntArrayConstIterator.adoc[PackedIntArrayConstIterator]
xref:BloombergLP/bdlc/operator_inc-06.adoc[operator&plus;&plus;&lt;&gt;](
    xref:BloombergLP/bdlc/PackedIntArrayConstIterator.adoc[PackedIntArrayConstIterator]&,
    int);
----

[.small]#xref:BloombergLP/bdlc/operator_inc-06.adoc[_» more&period;&period;&period;_]#

Advance the specified `iterator` to refer to the next location in the referenced array, and return an iterator referring to the original location (_before_ the advancement)&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 `iterator &hyphen; array&period;begin() &lt; array&period;length()`&period;


[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;]
xref:BloombergLP/bdlc/operator_inc-07.adoc[operator&plus;&plus;](
    xref:BloombergLP/bdlc/CompactedArray_ConstIterator.adoc[CompactedArray&lowbar;ConstIterator&lt;TYPE&gt;]& iterator,
    int);
----

[.small]#xref:BloombergLP/bdlc/operator_inc-07.adoc[_» more&period;&period;&period;_]#

Advance the specified iterator `iter` to refer to the next element in the referenced array, and return an iterator referring to the original element (_before_ the advancement)&period; The returned iterator, `it`, referencing an element within a `PackedIntArray`, `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, `PackedIntArrayConstInterator() !&equals; iter` and `iter &hyphen; array&period;begin() &lt; array&period;length()`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
xref:BloombergLP/bdlc/PackedIntArrayConstIterator.adoc[bdlc::PackedIntArrayConstIterator&lt;TYPE&gt;]
xref:BloombergLP/bdlc/operator_inc-01.adoc[operator&plus;&plus;](
    xref:BloombergLP/bdlc/PackedIntArrayConstIterator.adoc[PackedIntArrayConstIterator&lt;TYPE&gt;]& iter,
    int);
----

[.small]#xref:BloombergLP/bdlc/operator_inc-01.adoc[_» more&period;&period;&period;_]#


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