次の方法で共有


array::operator() 演算子

パラメーターで指定された要素の値を返します。

value_type& operator() (const index<_Rank>& _Index) restrict(amp,cpu);
                     
const value_type& operator() (const index<_Rank>& _Index) const restrict(amp,cpu);
                     
value_type& operator() (int _I0, int _I1) __GPU;
                     
const value_type& operator() (int _I0, int _I1) const restrict(amp,cpu);
                     
value_type& operator() (int _I0, int _I1, int _I2) restrict(amp,cpu);
                     
const value_type& operator() (int _I0, int _I1, int _I2) const restrict(amp,cpu);
                     
auto operator()(int _I) restrict(amp,cpu) -> decltype(details::_Array_projection_helper<_Value_type,_Rank>::_Project0((array<_Value_type,_Rank> *)NULL,_I));
                     
auto operator()(int _I) const restrict(amp,cpu) -> decltype(details::_Array_projection_helper<_Value_type,_Rank>::_Project0((const array<_Value_type,_Rank> *)NULL,_I));

パラメーター

  • _Index
    要素の位置。

  • _I0
    このセクションの原点の最も重要なコンポーネントです。

  • _I1
    次へ-する-最上位コンポーネントの原点のここ。

  • _I2
    このセクションの原点の最下位のコンポーネントです。

  • _I
    要素の位置。

戻り値

パラメーターで指定された要素の値。

解説

オーバー ロードを持つI0、 I1、またはI2パラメーター内の値への参照を取得するために有効にする、 アレイを作成することがなく、 インデックスオブジェクト。

必要条件

ヘッダー: amp.h

名前空間: Concurrency

参照

関連項目

array クラス