Difference between revisions of "cpp/numeric/valarray/swap"
From cppreference.com
(fmt) |
m (merge noexcept) |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{cpp/numeric/valarray/title|swap}} | {{cpp/numeric/valarray/title|swap}} | ||
− | {{cpp/numeric/valarray/ | + | {{cpp/numeric/valarray/}} |
− | {{ | + | {{ |
+ | | | ||
void swap( valarray& other ); | void swap( valarray& other ); | ||
+ | |||
+ | |||
}} | }} | ||
+ | |||
Swaps the contents with those of {{tt|other}}. | Swaps the contents with those of {{tt|other}}. | ||
===Parameters=== | ===Parameters=== | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| other | another valarray to swap the contents with}} |
− | {{ | + | {{end}} |
===Return value=== | ===Return value=== | ||
(none) | (none) | ||
− | + | {{}} | |
− | {{ | + |
Latest revision as of 04:35, 29 March 2019
void swap( valarray& other ); |
(until C++11) | |
void swap( valarray& other ) noexcept; |
(since C++11) | |
Swaps the contents with those of other
.
[edit] Parameters
other | - | another valarray to swap the contents with |
[edit] Return value
(none)