|
constexprnoexcept |
Returns an object of an unspecified type which is an iterator of the same category as the parameter but redefines increment, decrement and comparison operators to keep the current offset from the initial position.
Iterator | A type of it . It can be any iterator satisfying the Iterator requirements. |
it | An iterator to adapt to the counting operator |
it
which delegates all calls except for the comparison operators to it
and redefines the comparison operators together with shifting operators, e.g. increment, to take into account offset of the resulting iterator from the initial state defined by it
. The initial position is set to zero by this function, that is unlike the offset_iterator_end counterpart.The offset_iterator_begin and offset_iterator_end functions allow iterations inside code that has a range based interface (i.e. one that given by a pair of a beginning and an ending iterator) based on only a given beginning iterator and a number of elements to read, even when the given iterator is an InputIterator or an OutputIterator.
The function is marked noexcept if a copy-construction of it
is noexcept.
Output:
234