W3cubDocs

/C++

std::valarray::swap

void swap( valarray& other );

Swaps the contents with those of other.

Parameters

other - another valarray to swap the contents with

Return value

(none).

Exceptions

(none) (until C++11)
noexcept specification:
noexcept
(since C++11)

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/numeric/valarray/swap