Поделиться через


array::operator Operator

Returns the element that is at the specified index.

value_type& operator[] (
   const index<_Rank>& _Index
) restrict(amp,cpu);

const value_type& operator[] (
   const index<_Rank>& _Index
) const restrict(amp,cpu);

typename details::_Projection_result_type<_Value_type,_Rank>::_Result_type operator[](
   int _I
) restrict(amp,cpu);

typename details::_Projection_result_type<_Value_type,_Rank>::_Const_result_type operator[](
   int _I
) const restrict(amp,cpu);

Parameters

  • _Index
    The index.

  • _I
    The index.

Return Value

The element that is at the specified index.

Requirements

Header: amp.h

Namespace: Concurrency

See Also

Reference

array Class