Namespaces
Variants
Views
Actions

std::swap(std::valarray)

From cppreference.com
< cpp‎ | numeric‎ | valarray
Revision as of 13:19, 2 November 2012 by P12bot (Talk | contribs)

 
 
 
 

Template:ddcl list begin <tr class="t-dcl ">

<td class="t-dcl-nopad">
template< class T >
void swap( valarray<T> &lhs, valarray<T> &rhs );
</td>

<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end

Specializes the std::swap algorithm for std::valarray. Swaps the contents of lhs and rhs. Calls lhs.swap(rhs).

Contents

Parameters

lhs, rhs - valarrays whose contents to swap

Return value

(none)

Complexity

Constant.

See also

Template:cpp/numeric/valarray/dcl list swap