imag

imag

template<class T>
    T imag(const complex<T>& x);

The function returns the imaginary part of x.