BloombergLP::bdlc::operator-

Return the signed distance between two iterators (see free operator-).

Synopsis

Declared in <bdlc_compactedarray.h>

template<>
std::ptrdiff_t
operator-(
    CompactedArray_ConstIterator const& lhs,
    CompactedArray_ConstIterator const& rhs);

Return Value

signed distance from rhs to lhs

Parameters

NameDescription
lhsleft-hand-side iterator
rhsright-hand-side iterator