Standard C++ Library Reference ISO/IEC (VERSION3)

which is the copy constructor.
complex::imag
Ty imag() const;
The member function returns the stored imaginary part.
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 product 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 and imaginary parts with those corresponding
to the complex sum of *this and right. It then returns *this.
The second member function adds right to 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);