Standard C++ Library Class Reference
template<class T> complex<T>
operator* (const complex<T>& lhs,const complex<T>& rhs);
template<class T> complex<T>
operator* (const complex<T>& lhs, T rhs);
template<class T> complex<T>
operator* (T lhs, const complex<T>& rhs);
Returns the product of lhs and rhs.
template<class T> complex<T>
operator/ (const complex<T>& lhs,const complex<T>& rhs);
template<class T> complex<T>
operator/ (const complex<T>& lhs, T rhs);
template<class T> complex<T>
operator/ (T lhs, const complex<T>& rhs);
Returns the quotient of lhs divided by rhs.
template<class T> complex<T>
operator+ (const complex<T>& rhs);
Returns rhs.
template<class T> complex<T>
operator- (const complex<T>& lhs);
Returns complex<T>(-lhs.real(), -lhs.imag()).
template<class T> bool
operator== (const complex<T>& x, const complex<T>& y);
Returns true if the real and imaginary parts of x and y are equal.
template<class T> bool
operator== (const complex<T>& x, T y);
Returns true if y is equal to the real part of x and the imaginary part of x is equal to 0.
template<class T> bool
operator== (T x, const complex<T>& y);
Returns true if x is equal to the real part of y and the imaginary part of y is equal to 0.
template<class T> bool
operator!= (const complex<T>& x, const complex<T>& y);
Returns true if either the real or the imaginary part of x and y are not equal.
template<class T> bool
operator!= (const complex<T>& x, T y);
Returns true if y is not equal to the real part of x or the imaginary part of x is not equal to
0.
template<class T> bool