[#bsl-operator_minus-05]
= xref:bsl.adoc[bsl]::operator&hyphen;
:relfileprefix: ../
:mrdocs:

Return the distance from the specified `i` iterator to the specified `s` sentinel&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;vector&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
auto
operator&hyphen;(
    auto s,
    xref:bsl/vector_UintPtrConversionIterator.adoc[vector&lowbar;UintPtrConversionIterator] i)
requires random&lowbar;access&lowbar;iterator&lt;ITERATOR&gt;;
----

== Return Value

distance from the iterator to the sentinel

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| sentinel marking the end of the range
| *i*
| iterator from which the distance is measured
|===


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