Upraviť

Zdieľať cez


IForwardIterator<TValue> Interface

Definition

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

generic <typename TValue>
public interface class IForwardIterator : Microsoft::VisualC::StlClr::Generic::IInputIterator<TValue>, Microsoft::VisualC::StlClr::Generic::IOutputIterator<TValue>
public interface IForwardIterator<TValue> : Microsoft.VisualC.StlClr.Generic.IInputIterator<TValue>, Microsoft.VisualC.StlClr.Generic.IOutputIterator<TValue>
type IForwardIterator<'Value> = interface
    interface IInputIterator<'Value>
    interface IOutputIterator<'Value>
Public Interface IForwardIterator(Of TValue)
Implements IInputIterator(Of TValue), IOutputIterator(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>)
valid()

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

(Inherited from IBaseIterator<TValue>)

Applies to