Assigns new values to the contents.
cx.real()
and cx.imag()
to the real and the imaginary parts of the complex number respectively. The copy assignment operator (1) is trivial when T
is a floating-point type. (since C++23)
x
to the real part of the complex number. Imaginary part is set to zero.x | - | value to assign |
cx | - | complex value to assign |
*this
.
The copy assignment operator is required to be trivial since C++23, but implementations generally make it trivial in all modes.
constructs a complex number (public member function) |
|
(C++14) | a std::complex literal representing purely imaginary number (function) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/numeric/complex/operator%3D