Редагувати

Поділитися через


IBidirectionalIterator<TValue> Interface

Definition

Interface for an iterator that can access elements in a container in the forward direction by using the increment operator and in the backward direction by using the decrement operator. The element that the iterator points to can be both written to and read from any number of times. Bidirectional iterators can be used anywhere an input or output iterator is required.

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)

Type Parameters

TValue

The type of an element in the controlled sequence.

Derived
Implements

Methods

Clone()

Creates a new object that is a copy of the current instance.

(Inherited from ICloneable)
container()

Gets the container that the iterator is traversing.

(Inherited from IBaseIterator<TValue>)
equal_to(IInputIterator<TValue>)

Determines whether two IInputIterator<TValue> objects are equal.

(Inherited from IInputIterator<TValue>)
get_bias()

Gets the bias of the iterator. The bias is the offset of the iterator from element zero.

(Inherited from IBaseIterator<TValue>)
get_cref()

Returns a constant reference to the element that the iterator is currently pointing to.

(Inherited from IInputIterator<TValue>)
get_node()

Gets the node, or element, that the iterator is pointing to.

(Inherited from IBaseIterator<TValue>)
get_ref()

Returns a reference to the element that the iterator is currently pointing to.

(Inherited from IOutputIterator<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.

(Inherited from IBaseIterator<TValue>)
prev()

Positions the iterator to the element immediately before the current element.

valid()

Determines whether the iterator is valid and can be safely used to traverse the underlying container.

(Inherited from IBaseIterator<TValue>)

Applies to