Please, could someone explain in plain English what is “Extending move semantics to *this”? I am referring to this proposal. All what am looking for is what is that & why do we need that. Note that I do understand what an rvalue reference is in general, upon which move semantics is built. I am not able to grasp what such an extension adds to rvalue references!
Please, could someone explain in plain English what is Extending move semantics to *this?
Share
The ref-qualifier feature (indicating the type of
*this) would allow you to distinguish whether a member function can be called on rvalues or lvalues (or both), and to overload functions based on that. The first version gives some rationale in the informal part: