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

Subtraction operators

== Synopses

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

Return the bitwise MINUS of the specified `lhs` and `rhs` arrays&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlc/BitArray.adoc[bdlc::BitArray]
xref:BloombergLP/bdlc/operator_minus-0a9.adoc[operator&hyphen;](
    xref:BloombergLP/bdlc/BitArray.adoc[BitArray] const& lhs,
    xref:BloombergLP/bdlc/BitArray.adoc[BitArray] const& rhs);
----

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

Return the signed distance between two iterators (see free `operator&hyphen;`)&period;


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

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

Return the signed distance between two iterators (see free `operator&hyphen;`)&period;


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

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

Return an iterator at the negated specified offset from the given iterator (see free `operator&hyphen;`)&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_minus-01.adoc[operator&hyphen;](
    xref:BloombergLP/bdlc/CompactedArray_ConstIterator.adoc[CompactedArray&lowbar;ConstIterator&lt;TYPE&gt;] const& iterator,
    std::ptrdiff&lowbar;t offset);
----

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

Return an iterator at the negated specified `offset` from `iterator`&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_minus-03.adoc[operator&hyphen;](
    xref:BloombergLP/bdlc/CompactedArray_ConstIterator.adoc[CompactedArray&lowbar;ConstIterator&lt;TYPE&gt;] const& iterator,
    std::ptrdiff&lowbar;t offset);
----

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

Return the signed distance between the specified `lhs` and `rhs`&period;


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

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

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


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

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

== Return Value

* bitwise MINUS of `lhs` and `rhs`
* signed distance from `rhs` to `lhs`
* iterator at the negated specified offset from `iterator`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *lhs*
| first operand
| *rhs*
| second operand
| *iterator*
| base iterator
| *offset*
| number of positions to move backward
|===


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