array_view::operator() 運算子

傳回由一或多個參數指定的元素的值。

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

參數

  • _Index
    項目的位置。

  • _I0
    第一個維度裡的索引。

  • _I1
    第二個維度裡的索引。

  • _I2
    第三個維度裡的索引。

  • _I
    項目的位置。

傳回值

由一或多個參數指定的項目的值。

需求

標頭檔: amp.h

**命名空間:**並行

請參閱

參考

array_view 類別