Standard C++ Library Reference ISO/IEC (VERSION3)
complex::operator-=
template<class Other>
complex& operator-=(const complex<Other>& right);
complex& operator-=(const Ty& right);
The first member function replaces the stored real and imaginary parts with those corresponding
to the complex difference of *this and right. It then returns *this.
The second member function subtracts right from the stored real part. It then returns *this.
In this implementation, if a translator does not support member template functions, the
template:
template<class Other>
complex& operator-=(const complex<Other>& right);
is replaced by:
complex& operator-=(const complex& right);
complex::operator/=
template<class Other>
complex& operator/=(const complex<Other>& right);
complex& operator/=(const Ty& right);
The first member function replaces the stored real and imaginary parts with those corresponding
to the complex quotient of *this and right. It then returns *this.
The second member function multiplies both the stored real part and the stored imaginary part
with right. It then returns *this.
In this implementation, if a translator does not support member template functions, the
template:
template<class Other>
complex& operator/=(const complex<Other>& right);
is replaced by:
complex& operator/=(const complex& right);
complex::operator=
template<class Other>
complex& operator=(const complex<Other>& right);
complex& operator=(const Ty& right);
The first member function replaces the stored real part with right.real() and the stored
imaginary part with right.imag(). It then returns *this.