std::complex<T>::real (3) - Linux Manuals
std::complex<T>::real: std::complex<T>::real
NAME
std::complex<T>::real - std::complex<T>::real
Synopsis
primary template complex<T>
T real() const; (until C++14)
constexpr T real() const; (since C++14)
void real( T value ); (until C++20)
constexpr void real( T value ); (since C++20)
specialization complex<float>
float real() const; (until C++11)
constexpr float real(); (since C++11)
constexpr float real() const; (since C++14)
void real( float value ); (until C++20)
constexpr void real( float value ); (since C++20)
specialization complex<double>
double real() const; (1) (until C++11)
constexpr double real(); (2) (since C++11)
constexpr double real() const; (since C++14)
void real( double value ); (2) (until C++20)
constexpr void real( double value ); (since C++20)
specialization complex<long double> (1)
long double real() const; (until C++11)
constexpr long double real(); (2) (since C++11)
constexpr long double real() const; (since C++14)
void real( long double value ); (2) (until C++20)
constexpr void real( long double value ); (since C++20)
Accesses the real part of the complex number.
1) Returns the real part.
2) Sets the real part to value.
Parameters
value - the value to set the real part to
Return value
1) The real part.
2) (none)
See also
real (function template)
imag (public member function)