IRandomAccessIterator(TValue) Interface

IRandomAccessIterator<TValue> Interface


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.

Namespace:   Microsoft.VisualC.StlClr.Generic
Assembly:  Microsoft.VisualC.STLCLR (in Microsoft.VisualC.STLCLR.dll)

public interface IRandomAccessIterator<TValue> : IBidirectionalIterator<TValue>

Type Parameters


The type of an element in the controlled sequence.


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


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


Moves the iterator by the given number of elements.


Positions the iterator to the element immediately before the current element.(Inherited from IBidirectionalIterator<TValue>.)

.NET Framework
Available since 3.5
Return to top
© 2016 Microsoft