[#btck-Iterator-operator_minus-03]
= xref:btck.adoc[btck]::xref:btck/Iterator.adoc[Iterator]::operator&hyphen;
:relfileprefix: ../../
:mrdocs:

Subtraction operators

== Synopses

Declared in `&lt;kernel&sol;bitcoinkernel&lowbar;wrapper&period;h&gt;`

Returns an iterator rewound by `n` positions&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
auto
xref:btck/Iterator/operator_minus-00.adoc[operator&hyphen;](xref:btck/Iterator/difference_type.adoc[difference&lowbar;type] n) const;
----

[.small]#xref:btck/Iterator/operator_minus-00.adoc[_» more&period;&period;&period;_]#

Computes the distance between two iterators&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
auto
xref:btck/Iterator/operator_minus-0a.adoc[operator&hyphen;](xref:btck/Iterator.adoc[Iterator] const& other) const;
----

[.small]#xref:btck/Iterator/operator_minus-0a.adoc[_» more&period;&period;&period;_]#

== Return Value

* A new iterator at the offset position&period;
* The signed number of elements between the two positions&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *n*
| The offset to subtract&period;
| *other*
| The iterator to subtract&period;
|===


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