Content deleted Content added
m →Overloading move assignment operator: array delete operator is required to free the storage of a char array that has bee allocated with the array new operator |
m v2.04b - Bot T20 CW#61 - Fix errors for CW project (Reference before punctuation) |
||
Line 1:
In the [[C++|C++ programming language]], the '''move assignment operator''' <code>=</code> is used for transferring a temporary object to an existing object. The move assignment operator, like most C++ operators, can be [[Operator overloading|overloaded]]. Like the [[copy assignment operator]] it is a [[special member functions|special member function]].
If the move assignment operator is not explicitly defined, the [[compiler]] generates an implicit move assignment operator ([[C++11]] and newer) provided that [[Copy constructor (C++)|copy]]/[[C++11|move constructors]], [[Assignment operator (C++)|copy assignment operator]] or [[Destructor (computer programming)|destructors]] have not been declared.<ref name=":0" />
== Overloading move assignment operator ==
|