bsl::operator-

Return the distance from the specified i iterator to the specified s sentinel.

Synopsis

Declared in <bslstl_vector.h>

auto
operator-(
    auto s,
    vector_UintPtrConversionIterator i)
requires random_access_iterator<ITERATOR>;

NOTE

This function is a hidden friend of vector_UintPtrConversionIterator, declared only inside that class: it can be found only through argument-dependent lookup.

Return Value

distance from the iterator to the sentinel

Parameters

NameDescription
ssentinel marking the end of the range
iiterator from which the distance is measured