std::complex<T>::operator+(unary), operator-(unary) - cppreference.com
From cppreference.com
| (1) | ||
|
(until C++20) | |
|
|
(since C++20) | |
| (2) | ||
|
(until C++20) | |
|
|
(since C++20) | |
Implements the analogs of the unary arithmetic operators for complex numbers.
1) Returns the value of its argument
2) Negates the argument
Parameters
| val | - | the complex number argument |
Return value
1) a copy of the argument, std::complex<T>(val)
2) negated argument, std::complex<T>(-val.real(), -val.imag())