Standard C++ Library Reference ISO/IEC (VERSION3)
Next
<complex>
abs · arg · complex · complex<double> · complex<float> ·
complex<long double> · conj · cos · cosh · exp · imag · log ·
log10 · norm · operator!= · operator* · operator+ · operator- ·
operator/ · operator<< · operator== · operator>> · polar · pow ·
real · sin · sinh · sqrt · tan · tanh · __STD_COMPLEX
Include the standard header <complex> to define template class complex and a host of
supporting template functions. Unless otherwise specified, functions that can return multiple
values return an imaginary part in the half-open interval (-pi, pi].
namespace std {
#define __STD_COMPLEX
// TEMPLATE CLASSES
template<class Ty>
class complex;
template<>
class complex<float>;
template<>
class complex<double>;
template<>
class complex<longdouble>;
// TEMPLATE FUNCTIONS
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,
const complex<Ty>& right);