This is not a Wikipedia article: It is an individual user's work-in-progress page, and may be incomplete and/or unreliable. For guidance on developing this draft, see Wikipedia:So you made a userspace draft. Find sources: Google (books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL |
Move Constructor (C++)
In the C++ programming language, a move constructor is a special constructor for creating a new object transferred from a temporary object. Move constructors is the modern way to construct a new object from a temporary object as opposed to copy and delete.
The first argument of such a constructor is a rvalue reference to an object of the same type as is being constructed, which might be followed by parameters of any type (all having default values).
See also
editReferences
editExternal links
editCategory:Articles with example C++ code