Luna::next

template <typename _Iter>
_Iter next(_Iter it, isize n=1)

Gets one iterator to the next nth element of the element pointed by the input iterator.

Parameters

  • in it

    The base iterator.

  • in n

    The position relative to the base iterator.

Return value

Returns the iterator to the next nth element of the element pointed by the input iterator.