Namespaces
Variants
Views
Actions

std::complex::real

From cppreference.com
< cpp‎ | numeric‎ | complex
Revision as of 22:16, 31 May 2013 by P12bot (Talk | contribs)

constexpr T real() const;
(1)
void real( T value );
(2)

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

accesses the imaginary part of the complex number
(public member function) [edit]