Method LastIndexOf
LastIndexOf<T>(Vector128<T>, T)
Determines the index of the last element in a vector that is equal to a given value.
public static int LastIndexOf<T>(Vector128<T> vector, T value) where T : struct
Parameters
vector
Vector128<T>The vector whose elements are being checked.
value
TThe value to check for in
vector
Returns
- int
The index into
vector
representing the last element that was equal tovalue
; otherwise,-1
if no such element exists.
Type Parameters
T
The type of the elements in the vector.
Exceptions
- NotSupportedException
The type of
vector
andvalue
(T
) is not supported.