Vector::First Method

Returns an iterator that specifies the first element in the Vector.

virtual Windows::Foundation::Collections::IIterator <T>^ 
   First();

An iterator that specifies the first element in the Vector.

A convenient way to hold the iterator returned by First() is to assign the return value to a variable that is declared with the auto type deduction keyword. For example, auto x = myVector->First();.

Header: collection.h

Namespace: Platform::Collections

Show:
© 2014 Microsoft