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

Subtraction operators

== Synopses

Declared in `&lt;bdlb&lowbar;transformiterator&period;h&gt;`

Return the distance from the underlying iterator of `b` to that of `a`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class FUNCTOR,
    class ITERATOR&gt;
bdlb::TransformIterator&lt;FUNCTOR, ITERATOR&gt;::difference&lowbar;type
xref:BloombergLP/bdlb/operator_minus-04.adoc[operator&hyphen;](
    xref:BloombergLP/bdlb/TransformIterator.adoc[TransformIterator&lt;FUNCTOR, ITERATOR&gt;] const& a,
    xref:BloombergLP/bdlb/TransformIterator.adoc[TransformIterator&lt;FUNCTOR, ITERATOR&gt;] const& b);
----

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

Return a copy of `iterator` regressed by the specified `offset`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class FUNCTOR,
    class ITERATOR&gt;
xref:BloombergLP/bdlb/TransformIterator.adoc[bdlb::TransformIterator&lt;FUNCTOR, ITERATOR&gt;]
xref:BloombergLP/bdlb/operator_minus-09.adoc[operator&hyphen;](
    xref:BloombergLP/bdlb/TransformIterator.adoc[TransformIterator&lt;FUNCTOR, ITERATOR&gt;] const& iterator,
    TransformIterator&lt;FUNCTOR, ITERATOR&gt;::difference&lowbar;type offset);
----

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

== Return Value

* the distance from the underlying iterator of `b` to that of `a`
* a copy of `iterator` regressed by `offset`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *a*
| left&hyphen;hand operand
| *b*
| right&hyphen;hand operand
| *iterator*
| transform iterator to regress
| *offset*
| signed distance to regress
|===


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