Constructors

Construct an object of a complex class.

  complex(const T& re = T(), const T& im = T());
  complex(const complex&);
  template<class X> complex(const complex<X>&);
  
Remarks

After construction real equal re and imag equals im.

AssignmentOperator

An assignment operator for complex classes.

  complex<T>& operator= (const T&);
  complex& operator= (const complex&);
  
  template<class X> complex<T>& operator= (const complex<X>&);
  
Remarks

Assigns a floating point type to the Cartesian complex class.