Namespaces
Variants
Views
Actions

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

From cppreference.com
< cpp‎ | numeric‎ | valarray
(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/sidebar}}
+
{{cpp/numeric/valarray/}}
{{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===
+
{{}}
{{noexcept}}
+

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)