Skip to content
UPEEC

Move Constructor

`T(T&& other) noexcept` transfers resources from a temporary instead of copying.

Intermediate
Comments 0

Leave the source valid but empty. Mark noexcept so std::vector uses it when growing.

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.