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

C++ 参考手册

位置:首页 > C++ 参考手册 >数值库 >std::complex > std::complex<T>::operator+=,-=,*=,/=

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

1,5) 将 other 加到 *this 。
2,6) 从 *this 减去 other 。
3,7) 将 *this 乘上 other 。
4,8) 以 other 除 *this 。

参数

返回值

*this

参阅