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