Vector64.LastIndexOf<T>(Vector64<T>, T) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines the index of the last element in a vector that is equal to a given value.
public:
generic <typename T>
static int LastIndexOf(System::Runtime::Intrinsics::Vector64<T> vector, T value);
public static int LastIndexOf<T>(System.Runtime.Intrinsics.Vector64<T> vector, T value);
static member LastIndexOf : System.Runtime.Intrinsics.Vector64<'T> * 'T -> int
Public Function LastIndexOf(Of T) (vector As Vector64(Of T), value As T) As Integer
Type Parameters
- T
The type of the elements in the vector.
Parameters
- vector
- Vector64<T>
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.
Exceptions
The type of vector and value (T) is not supported.