Metodo array::view_as

Restituisce un oggetto array_view che viene costruito dall'oggetto array.

template <
   int _New_rank                     
>
array_view<_Value_type,_New_rank> view_as(
   const Concurrency::extent<_New_rank>& _View_extent                     
) restrict(amp,cpu);
                     
template <
   int _New_rank                     
>
array_view<const _Value_type,_New_rank> view_as(
   const Concurrency::extent<_New_rank>& _View_extent                     
) const restrict(amp,cpu);

Parametri

  • _New_rank
    Il numero di dimensioni dell'oggetto extent passate come parametro.

  • _View_extent
    L'extent utilizzato per creare il nuovo oggetto array_view.

  • _Value_type
    Il tipo di dati degli elementi nell'oggetto array.

Valore restituito

L'oggetto array_view che viene costruito.

Requisiti

Intestazione: amp.h

Spazio dei nomi: Concurrency

Vedere anche

Riferimenti

Classe array