You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is a new fancy thing in C++11 that allow you to bypass copies when
they are unnecessary.
For instance, if you do "SomeThingBig a =
somefunctionwhichreturnbycopy();" then the compiler can tell that the
anonymous object returned won't be used anymore and a can be built by
"stealing" the data from the anonymous object rather than copy them.
It can make the API a lot simpler because we won't feel like we have
to pass things by pointer or by reference for the only sake to avoid a
copy.
I have never implemented that myself, so I need to make sure how that
works.
we should make sure that data structures that we expect to be big have proper support for the move semantic.
The text was updated successfully, but these errors were encountered: