Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/numeric/valarray/swap"

From cppreference.com
< cpp‎ | numeric‎ | valarray
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}}
{{ddcl |  
+
{{
 +
|
 
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)
  
===Exceptions===
+
{{||||itjaptruzh
{{rev begin}}
+
{{rev | until=c++11 | (none)}}
+
{{rev | since=c++11 | {{unreviewed noexcept}}}}
+
{{rev end}}
+
 
+
[[de:cpp/numeric/valarray/swap]]
+
[[es:cpp/numeric/valarray/swap]]
+
[[fr:cpp/numeric/valarray/swap]]
+
[[it:cpp/numeric/valarray/swap]]
+
[[ja:cpp/numeric/valarray/swap]]
+
[[pt:cpp/numeric/valarray/swap]]
+
[[ru:cpp/numeric/valarray/swap]]
+
[[zh:cpp/numeric/valarray/swap]]
+

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)