Windows Dev Center

VectorIterator::operator- Operator

Subtracts either a specified number of elements from the current iterator yielding a new iterator, or a specified iterator from the current iterator yielding the number of elements between the iterators.

VectorIterator operator-(
   difference_type n
) const;

difference_type operator-(
   const VectorIterator& other
) const;

n

A number of elements.

other

Another VectorIterator.

The first operator syntax returns a VectorIterator object that is n elements less than the current VectorIterator. The second operator syntax returns the number of elements between the current and the other VectorIterator.

Header: collection.h

Namespace: Platform::Collections

Show:
© 2015 Microsoft