real

Syntax:

    #include <complex>
    template <class T>
    T real( complex<T> num );
    // or:
    T complex<T>::real( );

The real() function returns the real part of num. It is available as both a regular function and as a method of the complex number.