IInputIterator<TValue> 接口

定义

迭代器的接口,仅用于向前读取容器中的序列。Interface for an iterator that is used to read a sequence from a container only in the forward direction. 迭代器指向的元素只能读取一次,并且不可修改。The element that the iterator points to can be read only one time, and it cannot be modified.

generic <typename TValue>
public interface class IInputIterator : Microsoft::VisualC::StlClr::Generic::IBaseIterator<TValue>
public interface IInputIterator<TValue> : Microsoft.VisualC.StlClr.Generic.IBaseIterator<TValue>
type IInputIterator<'Value> = interface
    interface IBaseIterator<'Value>
Public Interface IInputIterator(Of TValue)
Implements IBaseIterator(Of TValue)

类型参数

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.

(继承自 IBaseIterator<TValue>)
equal_to(IInputIterator<TValue>)

确定两个 IInputIterator<TValue> 对象是否相等。Determines whether two IInputIterator<TValue> objects are equal.

get_bias()

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

(继承自 IBaseIterator<TValue>)
get_cref()

返回对迭代器当前指向的元素的常量引用。Returns a constant reference to the element that the iterator is currently pointing to.

get_node()

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

(继承自 IBaseIterator<TValue>)
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.

(继承自 IBaseIterator<TValue>)
valid()

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

(继承自 IBaseIterator<TValue>)

适用于