constexpr complex( const T& re = T(), const T& im = T() );
constexpr complex( const complex& other );
Constructs the std::complex object.
1) Constructs the complex number from real and imaginary parts.
2) Copy constructor. Constructs the object with the copy of the contents of
|re||-||the real part|
|im||-||the imaginary part|
|other||-||another complex to use as source|
Constructors are marked as constexpr since c++14
 See also
| assigns the contents |
(public member function)