Platform::Collections::VectorViewIterator Class

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

ViewVectorIterator 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 VectorViewIterator;

T

The typename of the VectorViewIterator template class.

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 that is required for the implementation of VectorViewIterator.

reference

A reference to an internal type that is required for the implementation of VectorViewIterator.

value_type

The T typename.

Name

Description

VectorViewIterator::VectorViewIterator Constructor

Initializes a new instance of the VectorViewIterator class.

Name

Description

VectorViewIterator::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.

VectorViewIterator::operator-- Operator

Decrements the current VectorViewIterator.

VectorViewIterator::operator!= Operator

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

VectorViewIterator::operator* Operator

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

VectorViewIterator::operator[] Operator

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

VectorViewIterator::operator+ Operator

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

VectorViewIterator::operator++ Operator

Increments the current VectorViewIterator.

VectorViewIterator::operator+= Operator

Increments the current VectorViewIterator by the specified displacement.

VectorViewIterator::operator< Operator

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

VectorViewIterator::operator<= Operator

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

VectorViewIterator::operator-= Operator

Decrements the current VectorViewIterator by the specified displacement.

VectorViewIterator::operator== Operator

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

VectorViewIterator::operator> Operator

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

VectorViewIterator::operator-> Operator

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

VectorViewIterator::operator>= Operator

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

VectorViewIterator

Header: collection.h

Namespace: Platform::Collections

Other Resources

Platform Namespace
Show:
© 2014 Microsoft