Compartir a través de


array::operator= Operator

Copies the contents of the specified array object.

array & operator= (
   const array & _Other
) restrict(cpu);

array & operator= (
   array && _Other
) restrict(cpu);

array& operator=(
   const array_view<const _Value_type, _Rank>& _Src
) restrict(cpu);

Parameters

  • _Other
    The array object to copy from.

  • _Src
    The array object to copy from.

Return Value

A reference to this array object.

Overloads List

Name

Description

array & operator= ( const array & _Other ) restrict(cpu);

Copies the contents of the specified array object into this one, using a deep copy.

array & operator= ( array && Other ) restrict(cpu);

Copies the contents of the specified array object into this one, using a move assignment.

array& operator=( const array_view<const _Value_type, _Rank>& Src ) restrict(cpu);

Copies the array object into an array_view object.

Requirements

Header: amp.h

Namespace: Concurrency

See Also

Reference

array Class