Alex Rivera | Logout

Move semantics - what it's all about?

Asked 2011-07-25T11:53:26.473
11

Possible Duplicate:
Can someone please explain move semantics to me?

Could someone point me to a good source or explain it here what are the move semantics?

Edit
Report

1 Answer

4

Basically, rvalue references allow you to detect when objects are temporaries and you don't have to preserve their internal state. This allows for much more efficient code where C++03 used to have to copy all the time, in C++0x you can keep re-using the same resources. In addition, rvalue references enable perfect forwarding.

Have a look at this answer.

answered 2011-07-25T12:28:17.917

Your Answer