array_view::operator[] Operator

Returns the element that is specified by the parameters.

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[] (
   const index<_Rank>& _Index                     
) const restrict(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[] (
   const index<_Rank>& _Index                     
) const restrict(amp,cpu);

_Index

The index.

_I

The index.

The element that is specified by the parameters.

Header: amp.h

Namespace: Concurrency

Show: