[#bsl-operator_minus-06] = xref:bsl.adoc[bsl]::operator‐ :relfileprefix: ../ :mrdocs: Subtraction operators == Synopses Declared in `<bslstl_vector.h>` Return the distance from the specified `i` iterator to the specified `s` sentinel. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- auto xref:bsl/operator_minus-05.adoc[operator‐]( auto s, xref:bsl/vector_UintPtrConversionIterator.adoc[vector_UintPtrConversionIterator] i) requires random_access_iterator<ITERATOR>; ---- [.small]#xref:bsl/operator_minus-05.adoc[_» more..._]# Return the distance between the specified `lhs` iterator and the specified `rhs` iterator. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/vector_UintPtrConversionIterator/difference_type.adoc[difference_type] xref:bsl/operator_minus-00.adoc[operator‐]( xref:bsl/vector_UintPtrConversionIterator.adoc[vector_UintPtrConversionIterator] const& lhs, xref:bsl/vector_UintPtrConversionIterator.adoc[vector_UintPtrConversionIterator] const& rhs) requires requires { lhs.d_iter ‐ rhs.d_iter; }; ---- [.small]#xref:bsl/operator_minus-00.adoc[_» more..._]# == Return Value * distance from the iterator to the sentinel * signed distance from `rhs` to `lhs` == Parameters [cols="1,4"] |=== | Name| Description | *s* | sentinel marking the end of the range | *i* | iterator from which the distance is measured | *lhs* | left‐hand operand | *rhs* | right‐hand operand |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#