Export (0) Print
Expand All

swap (<valarray>)

Exchanges the elements of two valarrays.

template<class Type>
    void swap(
        valarray<Type>& _Left,
        valarray<Type>& _Right
    );

Parameter

Description

_Left

An object of type valarray.

_Right

An object of type valarray.

The template function executes _Left.swap(_Right).

Header: <valarray>

Namespace: std

Show:
© 2014 Microsoft