Jump to content

User:Sriprasadhr/sandbox/Move constructor (C++)

From Wikipedia, the free encyclopedia

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

[edit]

References

[edit]
[edit]

Category:Articles with example C++ code