std::complex<T>::operator+=,-=,*=,/=_C++中文网

C++ 参考手册

为复数算术和复数/标量混合算术实现复合赋值运算符。把标量参数当做复数,它拥有等于参数的实部和设为零的虚部。

1,5)other 加到 *this

2,6)*this 减去 other

3,7)*this 乘上 other

4,8)other*this

参数

other - 匹配类型( floatdoublelong double )的复数或标量值

返回值

*this

参阅