chsvlib
chsv helper source code

◆ operator-() [2/2]

transforming_iterator operator- ( difference_type  n) const

Creates a copy of an iterator associated with a position shifted by a specified number to the beginning of the iterated sequence.

Parameters
nA number of elements by which the resulting iterator is shifted towards the beginning (for non-negative values of n) or toward the end (for negative n) of the iterated sequence.
Returns
The resulting iterator.

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.