Export (0) Print
Expand All

next

Iterates a specified number of times and returns the new iterator position.

template<class InputIterator>
  InputIterator next(
    InputIterator _First,
    typename iterator_traits<InputIterator>::difference_type _Off = 1 
  );

_First

The current position.

_Off

The number of times to iterate.

Returns the new iterator position after iterating _Off times.

The template function returns next incremented _Off times

Header: <iterator>

Namespace: std

Show:
© 2014 Microsoft