Difference between revisions of "cpp/numeric/valarray/swap"
From cppreference.com
m (Text replace - "{{noexcept" to "{{unreviewed noexcept") |
m (merge noexcept) |
||
Line 1: | Line 1: | ||
{{cpp/numeric/valarray/title|swap}} | {{cpp/numeric/valarray/title|swap}} | ||
{{cpp/numeric/valarray/navbar}} | {{cpp/numeric/valarray/navbar}} | ||
− | {{ | + | {{ |
+ | | | ||
void swap( valarray& other ); | void swap( valarray& other ); | ||
+ | |||
+ | |||
}} | }} | ||
+ | |||
Swaps the contents with those of {{tt|other}}. | Swaps the contents with those of {{tt|other}}. | ||
Line 15: | Line 19: | ||
(none) | (none) | ||
− | + | {{||||itjaptruzh | |
− | {{ | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + |
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)