BloombergLP::bdlb::operator-

Subtraction operators

Synopses

Declared in <bdlb_transformiterator.h>

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

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

Return a copy of the specified iterator object with its underlying iterator regressed by the specified (signed) offset from that of iterator. The behavior is undefined if so regressing the underlying iterator is undefined.

template<
    class FUNCTOR,
    class ITERATOR>
bdlb::TransformIterator<FUNCTOR, ITERATOR>
operator-(
    TransformIterator<FUNCTOR, ITERATOR> const& iterator,
    TransformIterator<FUNCTOR, ITERATOR>::difference_type offset);
» more...