chsvlib
chsv helper source code

◆ operator-() [1/2]

difference_type operator- ( const transforming_iterator< BaseIterator, TransformingFunctor > &  right) const

Calculates a signed difference between positions of two iterators.

Parameters
rightAn iterator whose position is calculated with respect to the position of the current iterator.
Returns
The difference in the positions.

The operator is implemented by delegating the call to the adopted iterator.

The operator is only implemented by random-access transforming iterators, i.e. if the adopted iterator implements the random-access semantics.