IBaseIterator<TValue> 接口

定义

定义所有 STL/CLR 迭代器的基接口。Defines the base interface for all STL/CLR iterators.

generic <typename TValue>
public interface class IBaseIterator : ICloneable
public interface IBaseIterator<TValue> : ICloneable
type IBaseIterator<'Value> = interface
    interface ICloneable
Public Interface IBaseIterator(Of TValue)
Implements ICloneable

类型参数

TValue

受控序列中的元素的类型。The type of an element in the controlled sequence.

派生
实现

方法

Clone()

创建作为当前实例副本的新对象。Creates a new object that is a copy of the current instance.

(继承自 ICloneable)
container()

获取迭代器正在遍历的容器。Gets the container that the iterator is traversing.

get_bias()

获取迭代器的偏移。Gets the bias of the iterator. 偏移是迭代器相对于元素零的偏移量。The bias is the offset of the iterator from element zero.

get_node()

获取迭代器指向的节点或元素。Gets the node, or element, that the iterator is pointing to.

next()

将迭代器递增到基础容器中的下一个位置,如果已完全遍历该容器,则递增到容器末尾以外的第一个位置。Increments the iterator to the next position in the underlying container, or to the first position beyond the end of container if the container has been completely traversed.

valid()

确定迭代器是否有效并可安全用于遍历基础容器。Determines whether the iterator is valid and can be safely used to traverse the underlying container.

适用于