bsl::operator-

Subtraction operators

Synopses

Declared in <bslstl_vector.h>

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

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

Return the distance between the specified lhs iterator and the specified rhs iterator.

difference_type
operator-(
    vector_UintPtrConversionIterator const& lhs,
    vector_UintPtrConversionIterator const& rhs)
requires requires { lhs.d_iter - rhs.d_iter; };
» more...

Return Value

  • distance from the iterator to the sentinel
  • signed distance from rhs to lhs

Parameters

NameDescription
ssentinel marking the end of the range
iiterator from which the distance is measured
lhsleft-hand operand
rhsright-hand operand