std::valarray::swap

From cppreference.com
 
 
 
 
void swap( valarray& other );

Swaps the contents with those of other.

[edit] Parameters

other - another valarray to swap the contents with

[edit] Return value

(none)

[edit] Exceptions

noexcept specification:  
noexcept
  (since C++11)