Content deleted Content added
m →Overloading move assignment operator: Improve C++ example |
Add noexcept to example |
||
Line 15:
class String {
public:
String& operator=(String&& other) noexcept {
// If we're not trying to move the object into itself...
if (this != &other) {
|