Platform::Collections::VectorIterator Class

Platform::Collections::VectorIterator Class

 

Provides a Standard Template Library iterator for objects derived from the Windows Runtime IVector interface.

VectorIterator is a proxy iterator that stores elements of type VectorProxy<T>. However, the proxy object is almost never visible to user code. For more information, see Collections (C++/CX).

template <
   typename T
>
class VectorIterator;

T

The typename of the VectorIterator template class.

Public Typedefs

Name

Description

difference_type

A pointer difference (ptrdiff_t).

iterator_category

The category of a random access iterator (::std::random_access_iterator_tag).

pointer

A pointer to an internal type, Platform::Collections::Details::VectorProxy<T>, that is required for the implementation of VectorIterator.

reference

A reference to an internal type, Platform::Collections::Details::VectorProxy<T>,, that is required for the implementation of VectorIterator.

value_type

The T typename.

Public Constructors

Name

Description

VectorIterator::VectorIterator Constructor

Initializes a new instance of the VectorIterator class.

Public Operators

Name

Description

VectorIterator::operator- Operator

Subtracts either a specified number of elements from the current iterator yielding a new iterator, or a specified iterator from the current iterator yielding the number of elements between the iterators.

VectorIterator::operator-- Operator

Decrements the current VectorIterator.

VectorIterator::operator!= Operator

Indicates whether the current VectorIterator is not equal to a specified VectorIterator.

VectorIterator::operator* Operator

Retrieves a reference to the element specified by the current VectorIterator.

VectorIterator::operatorOperator

Retrieves a reference to the element that is a specified displacement from the current VectorIterator.

(DELETE) VectorIterator::operator+ Operator

Returns a VectorIterator that references the element at the specified displacement from the specified VectorIterator.

VectorIterator::operator++ Operator

Increments the current VectorIterator.

VectorIterator::operator+= Operator

Increments the current VectorIterator by the specified displacement.

VectorIterator::operator< Operator

Indicates whether the current VectorIterator is less than a specified VectorIterator.

VectorIterator::operator<= Operator

Indicates whether the current VectorIterator is less than or equal to a specified VectorIterator.

VectorIterator::operator-= Operator

Decrements the current VectorIterator by the specified displacement.

VectorIterator::operator== Operator

Indicates whether the current VectorIterator is equal to a specified VectorIterator.

VectorIterator::operator> Operator

Indicates whether the current VectorIterator is greater than a specified VectorIterator.

VectorIterator::operator-> Operator

Retrieves the address of the element referenced by the current VectorIterator.

VectorIterator::operator>= Operator

Indicates whether the current VectorIterator is greater than or equal to a specified VectorIterator.

VectorIterator

Requirements

Header: collection.h

Namespace: Platform::Collections

(NOTINBUILD) Platform Namespace

Show:
© 2017 Microsoft