返回参数指定的元素。
typename details::_Projection_result_type<_Value_type,_Rank>::_Const_result_type operator[] (
int _I
) const restrict(amp,cpu);
value_type& operator[] (
const index<_Rank>& _Index
) const restrict(amp,cpu);
参数
_Index
索引。_I
索引。
返回值
索引中的元素值,或在最重要的维度上投影的 array_view。
要求
**标头:**amp.h
命名空间: 并发