IOutputIterator<TValue> 接口

定义

迭代器的接口,仅用于将序列向前写入到容器中。Interface for an iterator that is used to write a sequence to a container only in the forward direction. 迭代器指向的元素只能写入一次。The element that the iterator points to can be written to only one time.

generic <typename TValue>
public interface class IOutputIterator : Microsoft::VisualC::StlClr::Generic::IBaseIterator<TValue>
public interface IOutputIterator<TValue> : Microsoft.VisualC.StlClr.Generic.IBaseIterator<TValue>
type IOutputIterator<'Value> = interface
    interface IBaseIterator<'Value>
Public Interface IOutputIterator(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>)
get_bias()

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

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

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

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

返回对迭代器当前指向的元素的引用。Returns a reference to the element that the iterator is currently 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.

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

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

(继承自 IBaseIterator<TValue>)

适用于