std::valarray<T>::
swap
From cppreference.com
<
cpp
|
numeric
|
valarray
C++
Compiler support
Freestanding and hosted
Language
Standard library
Standard library headers
Named requirements
Feature test macros
(C++20)
Language support library
Concepts library
(C++20)
Metaprogramming library
(C++11)
Diagnostics library
General utilities library
Strings library
Containers library
Iterators library
Ranges library
(C++20)
Algorithms library
Numerics library
Localizations library
Input/output library
Filesystem library
(C++17)
Regular expressions library
(C++11)
Concurrency support library
(C++11)
Execution support library
(C++26)
Technical specifications
Symbols index
External libraries
Numerics library
Common mathematical functions
Mathematical special functions
(C++17)
Mathematical constants
(C++20)
Basic linear algebra algorithms
(C++26)
Floating-point environment
(C++11)
Complex numbers
Numeric array (
valarray
)
Pseudo-random number generation
Factor operations
gcd
(C++17)
lcm
(C++17)
Interpolations
midpoint
(C++20)
lerp
(C++20)
Saturation arithmetic
add_sat
(C++26)
sub_sat
(C++26)
saturate_cast
(C++26)
mul_sat
(C++26)
div_sat
(C++26)
Generic numeric operations
iota
(C++11)
ranges::iota
(C++23)
accumulate
inner_product
adjacent_difference
partial_sum
reduce
(C++17)
transform_reduce
(C++17)
inclusive_scan
(C++17)
exclusive_scan
(C++17)
transform_inclusive_scan
(C++17)
transform_exclusive_scan
(C++17)
Bit operations
has_single_bit
(C++20)
bit_cast
(C++20)
bit_ceil
(C++20)
bit_floor
(C++20)
bit_width
(C++20)
rotl
(C++20)
rotr
(C++20)
popcount
(C++20)
countl_zero
(C++20)
countl_one
(C++20)
countr_zero
(C++20)
countr_one
(C++20)
byteswap
(C++23)
endian
(C++20)
std::valarray
Member functions
valarray::valarray
valarray::~valarray
valarray::operator=
valarray::operator[]
valarray::swap
valarray::size
valarray::resize
valarray::sum
valarray::min
valarray::max
valarray::shift
valarray::cshift
valarray::apply
valarray::operator+
valarray::operator-
valarray::operator~
valarray::operator!
valarray::operator+=
valarray::operator-=
valarray::operator*=
valarray::operator/=
valarray::operator%=
valarray::operator&=
valarray::operator|=
valarray::operator^=
valarray::operator<<=
valarray::operator>>=
Non-member functions
swap
(std::valarray)
(C++11)
begin
(std::valarray)
(C++11)
end
(std::valarray)
(C++11)
abs
exp
log
log10
pow
sqrt
sin
cos
tan
asin
acos
atan
atan2
sinh
cosh
tanh
operator*
operator/
operator%
operator+
operator-
operator^
operator&
operator|
operator<<
operator>>
operator&&
operator||
operator==
operator!=
operator<
operator>
operator<=
operator>=
Helper classes
slice_array
gslice_array
indirect_array
slice
gslice
mask_array
Deduction guides
(C++17)
void
swap
(
valarray
&
other
)
;
(until C++11)
void
swap
(
valarray
&
other
)
noexcept
;
(since C++11)
Swaps the contents with those of
other
.
Parameters
other
-
another valarray to swap the contents with
Return value
(none)