Vector::First Method

This topic has not yet been rated - Rate this topic

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

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.