std::imag(std::complex)_C++中文网
| 定义于头文件 |
||
| (1) | ||
| template< class T > |
(C++14 前) | |
| template< class T > |
(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 的虚部