std::imag(std::complex)
来自cppreference.com
                    
                                        
                    
                    
                                                            
                    | 在标头  <complex>定义 | ||
| (1) | ||
| template< class T >  T imag( const std::complex<T>& z ); | (C++14 前) | |
| template< class T >  constexpr T imag( const std::complex<T>& z ); | (C++14 起) | |
| (2) | ||
| float imag( float z ); template< class DoubleOrInteger > | (C++11 起) (C++14 前) | |
| constexpr float imag( float z ); template< class DoubleOrInteger > | (C++14 起) | |
1) 返回复数 
 z 的虚部,即 z.imag() 。| 2) 为 float 、 double 、 long double 和所有整数类型提供额外重载,将它们当做拥有零虚部的复数。 | (C++11 起) | 
参数
| z | - | 复数值 | 
返回值
z 的虚部
参阅
| 访问复数的虚部 (公开成员函数) | |
| 返回实部 (函数模板) |