Share via


array_view::operator() Operator

Returns the value of the element that is specified by the parameter or parameters.

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

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

value_type& operator() (
   int _I0,
   int _I1
) const restrict(amp,cpu);

value_type& operator() (
   int _I0,
   int _I1,
   int _I2
) const restrict(amp,cpu);

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

Parameters

  • _Index
    The location of the element.

  • _I0
    The index in the first dimension.

  • _I1
    The index in the second dimension.

  • _I2
    The index in the third dimension.

  • _I
    The location of the element.

Return Value

The value of the element that is specified by the parameter or parameters.

Requirements

Header: amp.h

Namespace: Concurrency

See Also

Reference

array_view Class