Export (0) Print
Expand All

ContainerRandomAccessIterator<TValue> Class

Provides an iterator that supports 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.

System.Object
  Microsoft.VisualC.StlClr.Generic.ContainerRandomAccessIterator<TValue>

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

public class ContainerRandomAccessIterator<TValue> : IRandomAccessIterator<TValue>

Type Parameters

TValue

The type of an element in the controlled sequence.

The ContainerRandomAccessIterator<TValue> type exposes the following members.

  NameDescription
Public methodContainerRandomAccessIterator<TValue>()Allocates and initializes a new ContainerRandomAccessIterator<TValue> object.
Public methodContainerRandomAccessIterator<TValue>(ContainerRandomAccessIterator<TValue>)Allocates and initializes a new ContainerRandomAccessIterator<TValue> object from an existing ContainerRandomAccessIterator<TValue> object.
Public methodContainerRandomAccessIterator<TValue>(IRandomAccessContainer<TValue>, Int32)Allocates and initializes a new ContainerRandomAccessIterator<TValue> object from an existing IRandomAccessContainer<TValue> object.
Top

  NameDescription
Public propertyItemAccesses the element at the given position in the container.
Top

  NameDescription
Public methodCloneCreates a copy of the current ContainerRandomAccessIterator<TValue> object.
Public methodcontainerGets the container that the iterator is traversing.
Public methoddistance(ContainerRandomAccessIterator<TValue>)Determines the distance between the element that the current iterator is pointing to and the element that the given iterator is pointing to.
Public methoddistance(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.
Public methodequal_to(ContainerRandomAccessIterator<TValue>)Determines whether the given ContainerRandomAccessIterator<TValue> object is the same as the current ContainerRandomAccessIterator<TValue> object.
Public methodequal_to(IInputIterator<TValue>)Determines whether the given IInputIterator<TValue> object is the same as the current ContainerRandomAccessIterator<TValue> object.
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodget_biasGets the bias of the iterator. The bias is the offset of the iterator from element zero.
Public methodget_crefReturns a constant reference to the element that the iterator is currently pointing to.
Public methodget_nodeGets the node, or element, that the iterator is pointing to.
Public methodget_refReturns a reference to the element that the iterator is currently pointing to.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodless_than(ContainerRandomAccessIterator<TValue>)Determines whether the current iterator is pointing to an element in the container that is before the element that the given iterator points to.
Public methodless_than(IRandomAccessIterator<TValue>)Determines whether the current iterator is pointing to an element in the container that is before the element that the given iterator points to.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodmoveMoves the iterator by the given number of elements.
Public methodnextIncrements 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.
Public methodprevPositions the iterator to the element immediately before the current element.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodvalidDetermines whether the iterator is valid and can be safely used to traverse the underlying container.
Top

  NameDescription
Public operatorAddition(ContainerRandomAccessIterator<TValue>, Int32)Increments the iterator by the given number of elements. The integer parameter is specified on the right side of the addition operator.
Public operatorStatic memberAddition(ContainerRandomAccessIterator<TValue>, Int32, ContainerRandomAccessIterator<TValue>)Increments the iterator by the given number of elements. The integer parameter is specified on the left side of the addition operator.
Public operatorAssignAssigns the given ContainerRandomAccessIterator<TValue> object to the current object.
Public operatorDecrement(ContainerRandomAccessIterator<TValue>)Decrements the iterator by one element. This is the prefix version of the decrement operator.
Public operatorDecrement(ContainerRandomAccessIterator<TValue>, Int32)Decrements the iterator by one element. This is the postfix version of the decrement operator.
Public operatorEquality(ContainerRandomAccessIterator<TValue>)Determines whether the given ContainerRandomAccessIterator<TValue> object is the same as the current ContainerRandomAccessIterator<TValue> object.
Public operatorEquality(IInputIterator<TValue>)Determines whether the given IInputIterator<TValue> object is the same as the current ContainerRandomAccessIterator<TValue> object.
Public operatorGreaterThan(ContainerRandomAccessIterator<TValue>)Determines whether the position of the left-side iterator is greater than the position of the given right-side iterator.
Public operatorStatic memberGreaterThan(IRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>)Determines whether the position of the given left-side iterator is greater than the position of the given right-side iterator.
Public operatorGreaterThanOrEqual(ContainerRandomAccessIterator<TValue>)Determines whether the position of the left-side iterator is greater than or equal to the position of the given right-side iterator.
Public operatorGreaterThanOrEqual(IRandomAccessIterator<TValue>)Determines whether the position of the left-side iterator is greater than or equal to the position of the given right-side iterator.
Public operatorImplicit(IRandomAccessIterator<TValue>)Converts a ContainerRandomAccessIterator<TValue> to an IRandomAccessIterator<TValue>.
Public operatorIncrement(ContainerRandomAccessIterator<TValue>)Increments the iterator by one element. This is the prefix version of the increment operator.
Public operatorIncrement(ContainerRandomAccessIterator<TValue>, Int32)Increments the iterator by one element. This is the postfix version of the increment operator.
Public operatorInequality(ContainerRandomAccessIterator<TValue>)Determines whether the given ContainerRandomAccessIterator<TValue> object differs from the current ContainerRandomAccessIterator<TValue> object.
Public operatorInequality(IInputIterator<TValue>)Determines whether the given IInputIterator<TValue> object differs from the current ContainerRandomAccessIterator<TValue> object.
Public operatorLessThan(ContainerRandomAccessIterator<TValue>)Determines whether the position of the left-side iterator is less than the position of the given right-side iterator.
Public operatorLessThan(IRandomAccessIterator<TValue>)Determines whether the position of the left-side iterator is less than the position of the given right-side iterator.
Public operatorLessThanOrEqual(ContainerRandomAccessIterator<TValue>)Determines whether the position of the left-side iterator is less than or equal to the position of the given right-side iterator.
Public operatorStatic memberLessThanOrEqual(IRandomAccessIterator<TValue>, ContainerRandomAccessIterator<TValue>)Determines whether the position of the given left-side iterator is less than the position of the given right-side iterator.
Public operatorStatic memberMemberSelectionReturns the element that the iterator is currently pointing to.
Public operatorStatic memberPointerDereferenceReturns the element that the iterator is currently pointing to.
Public operatorSubtraction(IRandomAccessIterator<TValue>)Determines the difference between two iterators.
Public operatorSubtraction(ContainerRandomAccessIterator<TValue>, Int32)Decrements the iterator by the given number of elements. The integer parameter is specified on the right side of the subtraction operator.
Top

Some methods, especially operators, declare a type for a parameter but do not specify a parameter name. Such a parameter is known as an unnamed parameter. In the documentation for these methods, the __unnamed0 placeholder represents the unnamed parameter.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft