std::imag(std::complex)
From cppreference.com
                    
                                        
                    
                    
                                                            
                    |   Defined in header <complex>
   | 
||
|   template< class T >  T imag( const complex<T>& z );  | 
(1) | |
|   long double imag( long double z );  | 
(2) | (since C++11) | 
|   template< class DoubleOrIngeter > double imag( DoubleOrInteger z );  | 
(3) | (since C++11) | 
|   float imag( float z );  | 
(4) | (since C++11) | 
Returns the imaginary component of the complex number z, i.e. z.imag().
(since C++11)Additional overloads are provided for float, double, long double, and all integer types, which are treated as complex numbers with zero imaginary component.
[edit] Parameters
| z | - | complex value | 
[edit] Return value
the imaginary component of z
[edit] See also
|    accesses the real part of the complex number  (public member function)  | |
|    accesses the imaginary part of the complex number  (public member function)  | |
|     imag  | 
   returns the imaginary component   (function template)  |