Vector

indexOf(const T& value, int i = 0) [Vector template]

Find the index (zero-based) of an item whose value is value starting at index i (optional, if not specified from the start at index 0).

Returns -1 if the item does not exist.

// PROTOTYPE
int indexOf(const T& value, int i = 0) const;