Share via


array::operator= Operator

Copies the contents of the specified array object.

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

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

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

array & operator= ( array && Other ) ;

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

Copies the array object into an array_view object.

Requirements

Header: amp.h

Namespace: Concurrency

See Also

Reference

array Class