Skip to content

Glossary: C++ Beyond the Basics

Move constructor

Also written: move semantics

A constructor `T(T&&)` that builds a new object by taking another's contents instead of copying them. The source is left moved-from.

Where the book teaches it

Related terms

std::moveMoved-fromnoexceptCopy constructor