valarray::swap
Exchanges the elements of two valarrays.
void swap(valarray& _Right);
Parameters
Parameter |
Description |
---|---|
_Right |
A valarray providing the elements to be swapped. |
Remarks
The member function swaps the controlled sequences between *this and _Right. It does so in constant time, it throws no exceptions, and it invalidates no references, pointers, or iterators that designate elements in the two controlled sequences.
Requirements
Header: <valarray>
Namespace: std