Skip to content
UPEEC

Move Assignment

`T& operator=(T&& other) noexcept` replaces contents by stealing from a temporary.

Intermediate
Comments 0

Release the current resource, take the other's, leave the other empty.

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.