Vector.IndexOfWhereAllBitsSet<T>(Vector<T>) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
決定向量中第一個元素的索引,該向量所有位元都已設定。
public:
generic <typename T>
static int IndexOfWhereAllBitsSet(System::Numerics::Vector<T> vector);
public static int IndexOfWhereAllBitsSet<T>(System.Numerics.Vector<T> vector);
static member IndexOfWhereAllBitsSet : System.Numerics.Vector<'T> -> int
Public Function IndexOfWhereAllBitsSet(Of T) (vector As Vector(Of T)) As Integer
類型參數
- T
向量中專案的型別。
參數
- vector
- Vector<T>
被檢查元素的向量。
傳回
索引 表示 vector 第一個所有位元都設定的元素;否則, -1 若不存在該元素。