BloombergLP::bdlc::operator-

Return the number of elements between lhs and rhs.

Synopsis

Declared in <bdlc_packedintarray.h>

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

Description

The behavior is undefined unless lhs and rhs reference the same array.

Specializations

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

Return Value

signed distance from rhs to lhs

Parameters

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