Share via


array_view::array_view Constructor

Initializes a new instance of the array_view class.

array_view(
   array<_Value_type,
   _Rank>& _Src,
   bool _Discard_original_data = false
)restrict(amp,cpu);
                     
array_view(
   const array_view& _Other,
   bool _Discard_original_data = false
)restrict(amp,cpu);
                     
template <
   typename _Container                     
>
array_view(
   const Concurrency::extent<_Rank>& _Extent,
   _Container& _Src,
   bool _Discard_original_data = false
);
                     
array_view(
   const Concurrency::extent<_Rank>& _Extent,
   _Value_type * _Src,
   bool _Discard_original_data = false
)restrict(amp,cpu);
                     
template <
   typename _Container                     
>
explicit array_view(
   int _E0,
   _Container& _Src,
   bool _Discard_original_data = false
);
                     
template <
   typename _Container                     
>
explicit array_view(
   int _E0,
   int _E1,
   _Container& _Src,
   bool _Discard_original_data = false
);
                     
template <
   typename _Container                     
>
explicit array_view(
   int _E0,
   int _E1,
   int _E2,
   _Container& _Src,
   bool _Discard_original_data = false
);
                     
explicit array_view(
   int _E0,
   _In_ _Value_type * _Src,
   bool _Discard_original_data = false
)restrict(amp,cpu);
                     
explicit array_view(
   int _E0,
   int _E1,
   _In_ _Value_type * _Src,
   bool _Discard_original_data = false
)restrict(amp,cpu);
                     
explicit array_view(
   int _E0,
   int _E1,
   int _E2,
   _In_ _Value_type * _Src,
   bool _Discard_original_data = false
)restrict(amp,cpu);
                     
array_view(
   const array<_Value_type,
   _Rank>& _Src                     
)restrict(amp,cpu);
                     
array_view(
   const array_view<_Value_type,
   _Rank>& _Src                     
)restrict(amp,cpu);
                     
array_view(
   const array_view<const _Value_type,
   _Rank>& _Src                     
)restrict(amp,cpu);
                     
template <
   typename _Container                     
>
array_view(
   const Concurrency::extent<_Rank>& _Extent,
   const _Container& _Src                     
);
                     
template <
   typename _Container                     
>
array_view(
   const Concurrency::extent<_Rank>& _Extent,
   _Container& _Src                     
);
                     
array_view(
   const Concurrency::extent<_Rank>& _Extent,
   const _Value_type * _Src                     
)restrict(amp,cpu);
                     
array_view(
   const Concurrency::extent<_Rank>& _Extent,
   _In_ _Value_type * _Src                     
)restrict(amp,cpu);
                     
template <
   typename _Container                     
>
array_view(
   int _E0,
   const _Container& _Src                     
);
                     
template <
   typename _Container                     
>
array_view(
   int _E0,
   int _E1,
   const _Container& _Src                     
);
                     
template <
   typename _Container                     
>
array_view(
   int _E0,
   int _E1,
   int _E2,
   const _Container& _Src                     
);
                     
array_view(
   int _E0,
   const _Value_type * _Src                     
)restrict(amp,cpu);
                     
array_view(
   int _E0,
   int _E1,
   const _Value_type * _Src                     
)restrict(amp,cpu);
                     
array_view(
   int _E0,
   int _E1,
   int _E2,
   const _Value_type * _Src                     
)restrict(amp,cpu);
                     
array_view(
   int _E0,
   _In_ _Value_type * _Src                     
)restrict(amp,cpu);
                     
array_view(
   int _E0,
   int _E1,
   _In_ _Value_type * _Src                     
)restrict(amp,cpu);
                     
array_view(
   int _E0,
   int _E1,
   int _E2,
   _In_ _Value_type * _Src                     
)restrict(amp,cpu);

Parameters

  • _Container
    A template argument that must specify a linear container that supports data() and size() members.

  • _Discard_original_data
    A Boolean value that indicates whether the current data underlying this array_view object is to be discarded. This is an optimization hint to the runtime that is used to avoid copying the current contents of the view to the target accelerator_view that it is accessed on. Its use is recommended if the existing content is not needed. This parameter is ignored when constructing an array_view object in a restrict(amp) restricted function.

  • _E0
    The most significant component of the extent of this section.

  • _E1
    The next-to-most-significant component of the extent of this section.

  • _E2
    The least significant component of the extent of this section.

  • _Extent
    The extent in each dimension of this array_view.

  • _Other
    An object of type array_view<T,N> from which to initialize the new array_view.

  • _Src
    A pointer to the source data that will be copied into the new array.

Requirements

Header: amp.h

Namespace: Concurrency

See Also

Reference

array_view Class