Standard C++ Library Reference ISO/IEC (VERSION3)
complex<Ty> operator+(const complex<Ty>& left,
const Ty& right);
template<class Ty>
complex<Ty> operator+(const Ty& left,
const complex<Ty>& right);
template<class Ty>
complex<Ty> operator+(const complex<Ty>& left);
The binary operators each convert both operands to the return type, then return the complex
sum of the converted left and right.
The unary operator returns left.
operator-
template<class Ty>
complex<Ty> operator-(const complex<Ty>& left,
const complex<Ty>& right);
template<class Ty>
complex<Ty> operator-(const complex<Ty>& left,
const Ty& right);
template<class Ty>
complex<Ty> operator-(const Ty& left,
const complex<Ty>& right);
template<class Ty>
complex<Ty> operator-(const complex<Ty>& left);
The binary operators each convert both operands to the return type, then return the complex
difference of the converted left and right.
The unary operator returns a value whose real part is -real(left) and whose imaginary part
is -imag(left).
operator/
template<class Ty>
complex<Ty> operator/(const complex<Ty>& left,
const complex<Ty>& right);
template<class Ty>
complex<Ty> operator/(const complex<Ty>& left,
const Ty& right);
template<class Ty>
complex<Ty> operator/(const Ty& left,
const complex<Ty>& right);