Namespaces
Variants
Views
Actions

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

From cppreference.com
< cpp‎ | numeric‎ | valarray
m (r2.7.3) (Robot: Adding de, es, fr, it, ja, pt, ru, zh)
m (merge noexcept)
 
(3 intermediate revisions by 3 users not shown)
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}}.
  
 
===Parameters===
 
===Parameters===
{{param list begin}}
+
{{begin}}
{{param list item | other | another valarray to swap the contents with}}
+
{{| other | another valarray to swap the contents with}}
{{param list end}}
+
{{end}}
  
 
===Return value===
 
===Return value===
 
(none)
 
(none)
  
===Exceptions===
+
{{deesfritjaptruzh
{{noexcept}}
+
 
+
[[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)