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

TValue

The type of an element in the controlled sequence.

NameDescription
System_CAPS_pubmethoddistance(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.

System_CAPS_pubmethodless_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.

System_CAPS_pubmethodmove(Int32)

Moves the iterator by the given number of elements.

System_CAPS_pubmethodprev()

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

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