chsvlib
chsv helper source code

◆ operator+()

transforming_iterator operator+ ( difference_type  n) const

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

Parameters
nA number of elements by which the resulting iterator is shifted towards the end (for non-negative values of n) or toward the beginning (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.