std::complex<T>::operator+(unary), operator-(unary)
From cppreference.com
 
 
 
 
 
 C++ 
 Feature test macros (C++20)
 Concepts library (C++20)
 Metaprogramming library (C++11)
 Ranges library (C++20)
 Filesystem library (C++17)
 Concurrency support library (C++11)
 Execution control library (C++26)
Numerics library 
  
 
 
 
 
 
 
 Mathematical special functions (C++17)
 Mathematical constants (C++20)
 Basic linear algebra algorithms (C++26)
 Data-parallel types (SIMD) (C++26)
 Floating-point environment (C++11)
 Bit manipulation (C++20)
 Saturation arithmetic (C++26)
(C++17)
(C++17)
(C++17)
(C++17)
(C++17)
(C++17)
std::complex 
  
 
 
 
 
 
 
 
operator+operator-
(until C++20)  
(C++26)
  (C++26)
(C++26)
 
 (1)
 
template< class T >
std::complex <T> operator+( const std::complex <T>& val );
 
 (until C++20)
std::complex <T> operator+( const std::complex <T>& val );
template< class T >
constexpr std::complex <T> operator+( const std::complex <T>& val );
 
 (since C++20) 
constexpr std::complex <T> operator+( const std::complex <T>& val );
 
 (2)
 
template< class T >
std::complex <T> operator-( const std::complex <T>& val );
 
 (until C++20)
std::complex <T> operator-( const std::complex <T>& val );
template< class T >
constexpr std::complex <T> operator-( const std::complex <T>& val );
 
 (since C++20) 
constexpr std::complex <T> operator-( const std::complex <T>& val );
Implements the analogs of the unary arithmetic operators for complex numbers.
1) Returns the value of its argument
2) Negates the argument
[edit] Parameters
 val
 -
 the complex number argument
[edit] Return value
1) a copy of the argument, std::complex <T>(val)
2) negated argument, std::complex <T>(-val.real(), -val.imag())
[edit] See also
 
 performs complex number arithmetic on two complex values or a complex and a scalar 
(function template) [edit]
(function template) [edit]