std::complex<T>::real
| primary template complex<T> |
||
| (1) | ||
| T real() const; |
(until C++14) | |
| constexpr T real() const; |
(since C++14) | |
| (2) | ||
| void real( T value ); |
(until C++20) | |
| constexpr void real( T value ); |
(since C++20) | |
| specialization complex<float> |
||
| (1) | ||
| float real() const; |
(until C++11) | |
| constexpr float real(); |
(since C++11) (until C++14) |
|
| constexpr float real() const; |
(since C++14) | |
| (2) | ||
| void real( float value ); |
(until C++20) | |
| constexpr void real( float value ); |
(since C++20) | |
| specialization complex<double> |
||
| (1) | ||
| double real() const; |
(until C++11) | |
| constexpr double real(); |
(since C++11) (until C++14) |
|
| constexpr double real() const; |
(since C++14) | |
| (2) | ||
| void real( double value ); |
(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(); |
(since C++11) (until C++14) |
|
| constexpr long double real() const; |
(since C++14) | |
| (2) | ||
| void real( long double value ); |
(until C++20) | |
| constexpr void real( long double value ); |
(since C++20) | |
Accesses the real part of the complex number.
value.[edit] Parameters
| value | - | the value to set the real part to |
[edit] Return value
[edit] See also
| returns the real component (function template) | |
| accesses the imaginary part of the complex number (public member function) |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
