Move constructor

Applies to: cpp

A move constructor transfers resources from a temporary or expiring object instead of copying them.

std::vector<int> b = std::move(a);

See also: move-semantics, copy-constructor