[#BloombergLP-bdlc-operator_minus-09]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::operator&hyphen;
:relfileprefix: ../../
:mrdocs:

Return the number of elements between `lhs` and `rhs`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
std::ptrdiff&lowbar;t
operator&hyphen;(
    xref:BloombergLP/bdlc/PackedIntArrayConstIterator.adoc[PackedIntArrayConstIterator&lt;TYPE&gt;] const& lhs,
    xref:BloombergLP/bdlc/PackedIntArrayConstIterator.adoc[PackedIntArrayConstIterator&lt;TYPE&gt;] const& rhs);
----

== Description

The behavior is undefined unless `lhs` and `rhs` reference the same array&period;

== Specializations

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlc/operator_minus-05.adoc[`operator&hyphen;&lt;&gt;`] 
| Return the signed distance between two iterators (see free `operator&hyphen;`)&period;
|===


== Return Value

signed distance from `rhs` to `lhs`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *lhs*
| left&hyphen;hand&hyphen;side iterator
| *rhs*
| right&hyphen;hand&hyphen;side iterator
|===


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