Language

Vector.LastIndexOf(Vector, T) Method

Definition

Determines the index of the last element in a vector that is equal to a given value.

public:
generic 
 static int LastIndexOf(System::Numerics::Vector vector, T value);
public static int LastIndexOf(System.Numerics.Vector vector, T value);
static member LastIndexOf : System.Numerics.Vector<'T> * 'T -> int
Public Function LastIndexOf(Of T) (vector As Vector(Of T), value As T) As Integer

Type Parameters

T

The type of the elements in the vector.

Parameters

vector
Vector

The vector whose elements are being checked.

value
T

The value to check for in vector

Returns

The index into vector representing the last element that was equal to value; otherwise, -1 if no such element exists.

Applies to