Vector64.WithElement<T>(Vector64<T>, Int32, T) メソッド

定義

指定したインデックス位置にある要素を指定した値に設定し、残りの要素を指定されたベクター内の要素と同じ値に設定して、新しい Vector64<T> を作成します。

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Runtime::Intrinsics::Vector64<T> WithElement(System::Runtime::Intrinsics::Vector64<T> vector, int index, T value);
public:
generic <typename T>
 where T : value class[System::Runtime::CompilerServices::Extension]
 static System::Runtime::Intrinsics::Vector64<T> WithElement(System::Runtime::Intrinsics::Vector64<T> vector, int index, T value);
public static System.Runtime.Intrinsics.Vector64<T> WithElement<T>(this System.Runtime.Intrinsics.Vector64<T> vector, int index, T value);
public static System.Runtime.Intrinsics.Vector64<T> WithElement<T>(this System.Runtime.Intrinsics.Vector64<T> vector, int index, T value) where T : struct;
static member WithElement : System.Runtime.Intrinsics.Vector64<'T> * int * 'T -> System.Runtime.Intrinsics.Vector64<'T>
static member WithElement : System.Runtime.Intrinsics.Vector64<'T (requires 'T : struct)> * int * 'T -> System.Runtime.Intrinsics.Vector64<'T (requires 'T : struct)> (requires 'T : struct)
<Extension()>
Public Function WithElement(Of T) (vector As Vector64(Of T), index As Integer, value As T) As Vector64(Of T)
<Extension()>
Public Function WithElement(Of T As Structure) (vector As Vector64(Of T), index As Integer, value As T) As Vector64(Of T)

型パラメーター

T

入力ベクターの型。

パラメーター

vector
Vector64<T>

残りの要素を取得するベクター。

index
Int32

設定する要素のインデックス。

value
T

要素を設定する値。

返品

Vector64<T>の要素の値がindexに設定され、残りの要素がvalueと同じ値に設定されたvector

例外

vector (T) の種類はサポートされていません。

index が 0 より小さいか、要素の数より大きかった。

適用対象