Move assignment operator: Difference between revisions

Content deleted Content added
Created page with 'In the C++ programming language, the move assignment operator (=), is used for moving an already instantiated object or resource to another ___location. The...'
Tags: nowiki added Visual edit
 
No edit summary
Line 3:
If the move assignment operator is not explicitly defined, then the compiler will generate an implicit move assignment operator. The parameters of a move assignment operator are an [[rvalue reference]] (T&&) to type T, where T is the type the move assignment operator is called on, or any overloaded type. The move assignment operator is different than a [[move constructor]] because a move assignment operator is called on an existing object, as a move constructor would be called on an object being created. One must somehow also signify the other object's data is not valid anymore, and has been moved.
 
<nowiki>__FORCETOC__</nowiki>
 
== Overloading move assignment operator ==
Line 51:
};
</syntaxhighlight>
==References==
<references />