IBidirectionalIterator<TValue> 接口

定义

迭代器的接口,该迭代器可使用递增运算符和递减运算符在向后方向访问容器中的元素。 迭代器指向的元素既可以写入任意次数,也可以从任意次数读取。 在需要输入或输出迭代器的任何位置都可以使用双向迭代器。

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

类型参数

TValue

受控序列中的元素的类型。

派生
实现

方法

名称 说明
Clone()

创建一个新对象,该对象是当前实例的副本。

(继承自 ICloneable)
container()

获取迭代器遍历的容器。

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

确定两个 IInputIterator<TValue> 对象是否相等。

(继承自 IInputIterator<TValue>)
get_bias()

获取迭代器的偏差。 偏差是迭代器与元素零的偏移量。

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

返回对迭代器当前指向的元素的常量引用。

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

获取迭代器指向的节点或元素。

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

返回对迭代器当前指向的元素的引用。

(继承自 IOutputIterator<TValue>)
next()

将迭代器递增到基础容器中的下一个位置,或者在容器完全遍历后的第一个位置。

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

将迭代器定位到紧邻当前元素之前。

valid()

确定迭代器是否有效,并可以安全地用于遍历基础容器。

(继承自 IBaseIterator<TValue>)

适用于