Uredi

Deli z drugimi prek


IRandomAccessIterator<TValue> Interface

Definition

Defines the interface for a random access iterator. Random access iterators support the following operations: moving forward one position by calling operator++, moving backward one position by calling operator--, accessing an element by using operator[], and accessing an element by using pointer arithmetic.

generic <typename TValue>
public interface class IRandomAccessIterator : Microsoft::VisualC::StlClr::Generic::IBidirectionalIterator<TValue>
public interface IRandomAccessIterator<TValue> : Microsoft.VisualC.StlClr.Generic.IBidirectionalIterator<TValue>
type IRandomAccessIterator<'Value> = interface
    interface IBidirectionalIterator<'Value>
Public Interface IRandomAccessIterator(Of TValue)
Implements IBidirectionalIterator(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>)
distance(IRandomAccessIterator<TValue>)

Determines the distance between the element that the current iterator is pointing to and the element that the given iterator is pointing to.

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>)
less_than(IRandomAccessIterator<TValue>)

Determines whether the current iterator is pointing to an element in the container that precedes the element that the given iterator points to.

move(Int32)

Moves the iterator by the given number of elements.

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.

(Inherited from IBidirectionalIterator<TValue>)
valid()

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

(Inherited from IBaseIterator<TValue>)

Applies to