This documentation is archived and is not being maintained.

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)

generic<typename TValue>
public interface class IRandomAccessIterator : IBidirectionalIterator<TValue>

Type Parameters

TValue

The type of an element in the controlled sequence.

The IRandomAccessIterator<TValue> type exposes the following members.

  NameDescription
Public methoddistanceDetermines the distance between the element that the current iterator is pointing to and the element that the given iterator is pointing to.
Public methodless_thanDetermines whether the current iterator is pointing to an element in the container that precedes the element that the given iterator points to.
Public methodmoveMoves the iterator by the given number of elements.
Public methodprevPositions the iterator to the element immediately before the current element. (Inherited from IBidirectionalIterator<TValue>.)
Top

.NET Framework

Supported in: 4, 3.5

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: