IRandomAccessIterator<TValue>.move(Int32) 方法

定义

按给定的元素数移动迭代器。Moves the iterator by the given number of elements.

public:
 int move(int _Offset);
public int move (int _Offset);
abstract member move : int -> int
Public Function move (_Offset As Integer) As Integer

参数

_Offset
Int32

要遍历的元素数。The number of elements to traverse. 若要向前移动迭代器,请指定一个正数。To move the iterator forward, specify a positive number. 若要向后移动迭代器,请使用一个负数。To move the iterator backward, use a negative number.

返回

遍历的实际元素数。The actual number of elements traversed. 如果在迭代所需的元素数之前到达了容器的开始或末尾位置,则此数字将与 _Offset 不同。This number will differ from _Offset if the beginning or end of the container is reached before iterating the desired number of elements.

适用于