Windows apps
Collapse the table of content
Expand the table of content

begin Function

Returns an iterator that points to the beginning of a collection that is accessed by the specified interface parameter.


template <typename T> 
    ::Platform::Collections::VectorIterator<T> 
    begin(
          IVector<T>^ v
         );

template <typename T> 
    ::Platform::Collections::VectorViewIterator<T> 
    begin(
          IVectorView<T>^ v
         ); 

template <typename T> 
    ::Platform::Collections::InputIterator<T> 
    begin(
          IIterable<T>^ i
         );

T

A template type parameter.

v

A collection of Vector<T> or VectorView<T> objects that are accessed by an IVector<T> or IVectorView<T> interface.

i

A collection of arbitraty Windows Runtime objects that are accessed by an IIterable<T> interface.

An iterator that points to the beginning of the collection.

The first two template functions return iterators, and the third template function returns an input iterator.

Header: collection.h

Namespace: Windows::Foundation::Collections

Show:
© 2017 Microsoft