Each element of the *this array is assigned the value of the corresponding element of the argument array. If the length of v is not equal to the length of *this , resizes *this to make the two arrays the same length, as if by calling resize(v.size()), before performing the assignment.
Postcondition: size() == v.size().
Effects: *this obtains the value of v. The value of v after the assignment is not specified.
Effects: *this = valarray(il).
The scalar assignment operator causes each element of the *this array to be assigned the value of the argument.
Requires: The length of the array to which the argument refers equals size().
These operators allow the results of a generalized subscripting operation to be assigned directly to a valarray.
If the value of an element in the left-hand side of a valarray assignment operator depends on the value of another element in that left-hand side, the resulting behavior is undefined.