array_view::array_view 构造函数

初始化 array_view 类的新实例。

array_view(
   array<_Value_type, _Rank>& _Src
)restrict(amp,cpu);

array_view(
   const array_view& _Other
)restrict(amp,cpu);

explicit array_view(
   const Concurrency::extent<_Rank>& _Extent
) restrict(cpu);

template <
   typename _Container
>
array_view(
   const Concurrency::extent<_Rank>& _Extent,
   _Container& _Src
) restrict(cpu);

array_view(
   const Concurrency::extent<_Rank>& _Extent,
   _Value_type * _Src
)restrict(amp,cpu);

explicit array_view(
   int _E0
) restrict(cpu);

template <
   typename _Container
>
explicit array_view(
   _Container& _Src,
   typename std::enable_if<details::_Is_container<_Container>::type::value, void **>::type = 0
) restrict(cpu);

template <
   typename _Container
>
explicit array_view(
   int _E0,
   _Container& _Src
) restrict(cpu);

explicit array_view(
   int _E0,
   int _E1
) __CPU_ONLY;

template <
   typename _Container
>
explicit array_view(
   int _E0,
   int _E1,
   _Container& _Src
) restrict(cpu);

explicit array_view(
   int _E0,
   int _E1,
   int _E2
) __CPU_ONLY;

template <
   typename _Container
>
explicit array_view(
   int _E0,
   int _E1,
   int _E2,
   _Container& _Src
);

explicit array_view(
   int _E0,
   _In_ _Value_type * _Src
)restrict(amp,cpu);

template <
   typename _Arr_type,
   int _Size
>
explicit array_view(
   _In_ _Arr_type (&_Src) [_Size]
) restrict(amp,cpu);

explicit array_view(
   int _E0,
   int _E1,
   _In_ _Value_type * _Src
)restrict(amp,cpu);

explicit array_view(
   int _E0,
   int _E1,
   int _E2,
   _In_ _Value_type * _Src
)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
) restrict(cpu);

template <
   typename _Container
>
explicit array_view(
   const _Container& _Src,
   typename std::enable_if<details::_Is_container<_Container>::type::value, void **>::type = 0
) restrict(cpu);

array_view(
   const Concurrency::extent<_Rank>& _Extent,
   const _Value_type * _Src
)restrict(amp,cpu);

template <
   typename _Arr_type,
   int _Size
>
explicit array_view(
   const _In_ _Arr_type (&_Src) [_Size]
) 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); 

参数

  • _Arr_type
    提供数据的 C 样式数组的元素类型。

  • _Container
    必须指定一个支持 data()size() 成员的线性容器的模板参数。

  • _E0
    此区域范围的最高有效组件。

  • _E1
    此区域范围的接近最高有效组件。

  • _E2
    此区域范围的最低有效组件。

  • _Extent
    array_view 中各个维度的范围。

  • _Other
    array_view<T,N> 类型的对象,从该对象初始化新 array_view 对象。

  • _Size
    提供数据的 C 样式数组的大小。

  • _Src
    指向将要复制到新数组的源数据的指针。

要求

**标头:**amp.h

命名空间: 并发

请参见

参考

array_view 类