[#BloombergLP-bdlc-operator_plus-04]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::operator&plus;
:relfileprefix: ../../
:mrdocs:

Addition operators

== Synopses

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

Return an iterator at the specified offset from the given iterator (see free `operator&plus;`)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;&gt;
xref:BloombergLP/bdlc/CompactedArray_ConstIterator.adoc[CompactedArray&lowbar;ConstIterator&lt;TYPE&gt;]
xref:BloombergLP/bdlc/operator_plus-0c.adoc[operator&plus;&lt;&gt;](
    xref:BloombergLP/bdlc/CompactedArray_ConstIterator.adoc[CompactedArray&lowbar;ConstIterator&lt;TYPE&gt;] const&,
    std::ptrdiff&lowbar;t);
----

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

Same as the preceding overload with operands swapped&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_plus-03.adoc[operator&plus;](
    std::ptrdiff&lowbar;t offset,
    xref:BloombergLP/bdlc/CompactedArray_ConstIterator.adoc[CompactedArray&lowbar;ConstIterator&lt;TYPE&gt;] const& iterator);
----

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

Return an iterator referencing the location at the specified `offset` from the location referenced by the specified `iterator`&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 `CompactedArray&lowbar;ConstIterator() !&equals; iterator` and `0 &lt;&equals; iterator &hyphen; array&period;begin() &plus; offset &lt;&equals; 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_plus-07.adoc[operator&plus;](
    xref:BloombergLP/bdlc/CompactedArray_ConstIterator.adoc[CompactedArray&lowbar;ConstIterator&lt;TYPE&gt;] const& iterator,
    std::ptrdiff&lowbar;t offset);
----

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


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