When a binary operator is overloaded, the corresponding assignment operator, if any, is also implicitly overloaded.
重载二元运算符时,也会隐式重载相应的赋值运算符(如果有)。
On all compound assignment operators, overloading the binary operator implicitly overloads the equivalent compound assignment.
在所有复合指派运算子上,多载二元运算子即隐含多载对等的复合指派。
应用推荐