BloombergLP::bdlb::operator-

Return the distance from the underlying iterator of b to that of a.

Synopsis

Declared in <bdlb_transformiterator.h>

template<
    class FUNCTOR,
    class ITERATOR>
bdlb::TransformIterator<FUNCTOR, ITERATOR>::difference_type
operator-(
    TransformIterator<FUNCTOR, ITERATOR> const& a,
    TransformIterator<FUNCTOR, ITERATOR> const& b);

Description

Return the result of subtracting the underlying iterator of the specified b object from the underlying iterator of the specified a object. The behavior is undefined if this subtraction is undefined.

Return Value

the distance from the underlying iterator of b to that of a

Parameters

NameDescription
aleft-hand operand
bright-hand operand