通过索引返回元素值。
const value_type operator() (
const index<_Rank>& _Index
) const restrict(amp);
const value_type operator() (
int _I0
) const restrict(amp);
const value_type operator() (
int _I0,
int _I1
) const restrict(amp);
const value_type operator() (
int _I0,
int _I1,
int _I2
) const restrict(amp);
value_type operator() (
const index<_Rank>& _Index
) const restrict(amp);
value_type operator() (
int _I0
) const restrict(amp);
value_type operator() (
int _I0,
int _I1
) const restrict(amp);
value_type operator() (
int _I0,
int _I1,
int _I2
) const restrict(amp);
参数
_Index
索引,可能是多维的。_I0
索引的最高有效组件。_I1
索引的接近最高有效组件。_I2
索引的最低有效组件。
返回值
由 _Index 编制索引的元素值。
要求
**标头:**amp_graphics.h
**命名空间:**concurrency::graphics