complex<T>& operator+=( const T& other ); | (1) | |
template< class X > complex<T>& operator+=( const complex<X>& other ); | (2) | |
complex<T>& operator-=( const T& other ); | (3) | |
template< class X > complex<T>& operator-=( const complex<X>& other ); | (4) | |
complex<T>& operator*=( const T& other ); | (5) | |
template< class X > complex<T>& operator*=( const complex<X>& other ); | (6) | |
complex<T>& operator/=( const T& other ); | (7) | |
template< class X > complex<T>& operator/=( const complex<X>& other ); | (8) |
Implements the compound assignment operators for complex arithmetic and for mixed complex/scalar arithmetic. Scalar arguments are treated as complex numbers with the real part equal to the argument and the imaginary part set to zero.
other to *this.other from *this.*this by other.*this by other.| other | - | a complex or scalar value of matching type (float, double, long double) |
*this.
| applies unary operators to complex numbers (function template) |
|
| performs complex number arithmetics on two complex values or a complex and a scalar (function template) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/numeric/complex/operator_arith