VectorView::IndexOf Method
Collapse the table of content
Expand the table of content

VectorView::IndexOf Method


Searches for the specified item in the current VectorView, and if found, returns the index of the item.

virtual bool IndexOf(
   T value,
   unsigned int* index


The item to find.


The zero-based index of the item if parameter value is found; otherwise, 0.

The index parameter is 0 if either the item is the first element of the VectorView or the item was not found. If the return value is true, the item was found and it is the first element; otherwise, the item was not found.

true if the specified item is found; otherwise, false.


Header: collection.h

Namespace: Platform::Collections

© 2016 Microsoft