This topic has not yet been rated - Rate this topic

array_view::operator() Operator

Visual Studio 2012

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);
                     
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

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.

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

Header: amp.h

Namespace: Concurrency

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.