std::valarray::
swap
From cppreference.com
<
cpp
lrm; |
numeric
lrm; |
valarray
C++
Language
Headers
Freestanding and hosted implementations
Named requirements
Language support library
Concepts library
(C++20)
Diagnostics library
Utilities library
Strings library
Containers library
Algorithms library
Iterators library
Numerics library
Input/output library
Localizations library
Regular expressions library
(C++11)
Atomic operations library
(C++11)
Thread support library
(C++11)
Filesystem library
(C++17)
Technical Specifications
Numerics library
Common mathematical functions
Special mathematical functions
Floating-point environment
(C++11)
Complex numbers
Numeric arrays
Pseudo-random number generation
Compile-time rational arithmetic
(C++11)
Numeric algorithms
gcd
(C++17)
lcm
(C++17)
Generic numeric operations
iota
(C++11)
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
bit_cast
(C++20)
ispow2
(C++20)
ceil2
(C++20)
floor2
(C++20)
log2p1
(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
(C++11)
begin
(C++11)
end
(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
)
;
Swaps the contents with those of
other
.
Parameters
other
-
another valarray to swap the contents with
Return value
(none)
Exceptions
(none)
(until C++11)
noexcept
specification:
noexcept
(since C++11)