Partager via


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 
  );

Parameters

  • _First
    The current position.

  • _Off
    The number of times to iterate.

Return Value

Returns the new iterator position after iterating _Off times.

Remarks

The template function returns next incremented _Off times

Requirements

Header: <iterator>

Namespace: std

See Also

Reference

<iterator>

advance (STL Samples)

Standard Template Library

Other Resources

<iterator> Members