std::complex::complex
From cppreference.com
constexpr complex( const T& re = T(), const T& im = T() ); |
(1) | |
constexpr complex( const complex& other ); |
(2) | |
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 other
.
[edit] Parameters
re | - | the real part |
im | - | the imaginary part |
other | - | another complex to use as source |
[edit] Notes
Constructors are marked as constexpr since c++14
[edit] See also
assigns the contents (public member function) |