| transforming_iterator<BaseRandomAccessIterator, TransformingFunctor> Chusov::Memory::operator+ | ( | typename transforming_iterator< BaseRandomAccessIterator, TransformingFunctor >::difference_type | n, |
| const transforming_iterator< BaseRandomAccessIterator, TransformingFunctor > & | iter | ||
| ) |
Creates a copy of a transforming iterator associated with a position shifted by a specified number to the end.
| BaseRandomAccessIterator | An iterator adopted by the transforming iterator iter. |
| TransformingFunctor | A functional object used by the transforming iterator iter to obtain values by applying the functional object to respective values of the adopted iterator. |
| n | A number of elements by which the resulting iterator is offset towards the end (for non-negative values of n) or toward the beginning (for negative n) of the iterated sequence. |
| iter | An original iterator which is shifted by n to produce the returned iterator. |
The operator is implemented by delegating the call to the adopted iterator.
The operator is only implemented if BaseRandomAccessIterator meets the requirements of RandomAccessIterator.