[valarray.special] # 29 Numerics library [[numerics]](./#numerics) ## 29.6 Numeric arrays [[numarray]](numarray#valarray.special) ### 29.6.3 valarray non-member operations [[valarray.nonmembers]](valarray.nonmembers#valarray.special) #### 29.6.3.4 Specialized algorithms [valarray.special] [🔗](#lib:swap,valarray) `template void swap(valarray& x, valarray& y) noexcept; ` [1](#1) [#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/numerics.tex#L8366) *Effects*: Equivalent to x.swap(y)[.](#1.sentence-1)