语言

Vector128.All<T>(Vector128<T>, T) 方法

定义

确定向量的所有元素是否都等于给定值。

public:
generic <typename T>
 static bool All(System::Runtime::Intrinsics::Vector128<T> vector, T value);
public static bool All<T>(System.Runtime.Intrinsics.Vector128<T> vector, T value);
static member All : System.Runtime.Intrinsics.Vector128<'T> * 'T -> bool
Public Function All(Of T) (vector As Vector128(Of T), value As T) As Boolean

类型参数

T

向量中的元素的类型。

参数

vector
Vector128<T>

要检查其元素的向量。

value
T

要签入的值 vector

返回

如果所有元素 都等于 ,则为 。

例外

不支持 的类型 和 />。

适用于