Vector::IndexOf Method

This topic has not yet been rated - Rate this topic

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


virtual bool IndexOf(
   T value,
   unsigned int* index
);
value

The item to find.

index

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 Vector 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

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