array::operator[] 運算子
傳回位在指定索引的元素。
value_type& operator[] (
const index<_Rank>& _Index
) restrict(amp,cpu);
const value_type& operator[] (
const index<_Rank>& _Index
) 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
索引。_I
索引。
傳回值
位於指定之索引位置的項目。
需求
標頭檔: amp.h
**命名空間:**並行