non-member functions | template<class T> complex<T> operator+(const complex<T>& lhs, const complex<T>& rhs);template<class T> complex<T> operator+(const complex<T>& lhs, const T& val);template<class T> complex<T> operator+(const T& val, const complex<T>& 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, const T& val);template<class T> complex<T> operator-(const T& val, const complex<T>& 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, const T& val);template<class T> complex<T> operator*(const T& val, const complex<T>& 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, const T& val);template<class T> complex<T> operator/(const T& val, const complex<T>& rhs);template<class T> complex<T> operator+(const complex<T>& rhs);template<class T> complex<T> operator-(const complex<T>& rhs);bool operator==(const complex<T>& lhs, const complex<T>& rhs);bool operator==(const complex<T>& lhs, const T& val);bool operator==(const T& val, const complex<T>& rhs);bool operator!=(const complex<T>& lhs, const complex<T>& rhs);bool operator!=(const complex<T>& lhs, const T& val);bool operator!=(const T& val, const complex<T>& rhs);template<class T, class charT, class traits> basic_istream<charT,traits>& operator>> (basic_istream<charT,traits>& istr, complex<T>& rhs);template<class T, class charT, class traits> basic_ostream<charT,traits>& operator<< (basic_ostream<charT,traits>& ostr, const complex<T>& rhs); |
---|