copy (1) | valarray& operator=(const valarray& x); |
---|---|
fill (2) | valarray& operator=(const T& val); |
sub-array (3) | valarray& operator=(const slice_array<T>& sub);valarray& operator=(const gslice_array<T>& sub);valarray& operator=(const mask_array<T>& sub);valarray& operator=(const indirect_array<T>& sub); |
copy/move (1) | valarray& operator=(const valarray& x);valarray& operator=(valarray&& x) noexcept; |
---|---|
fill (2) | valarray& operator=(const T& val); |
sub-array (3) | valarray& operator=(const slice_array<T>& sub);valarray& operator=(const gslice_array<T>& sub);valarray& operator=(const mask_array<T>& sub);valarray& operator=(const indirect_array<T>& sub); |
*this
: each element is assigned the value of the corresponding element in x.*this
after resizing the object (if necessary):*this
|
|
foo sums 20 |