所以你并不需要使用赋值运算符。
所以这是相等操作符,然而那个单等号是一个赋值运算符。
So this is the equality operator, whereas the single equal sign is the assignment operator.
所以到现在为止,赋值运算符复制了很多数据。
那个等号其实是个“赋值运算符。”
如何从复制赋值运算符调用复制构造函数?
How to call to the copy constructor from the copy-assignment operator?
所有的赋值运算符都返回赋给左操作数的值。
All assignment operators return the value that is assigned to the left operand.
然后,调用赋值运算符。
拷贝赋值运算符是由编译器自动实现,除非你提供一个。
A copy assignment operator is implemented by the compiler automatically unless you provide one.
不能重载赋值运算符。
不能重载赋值运算符。
应用推荐