What are “rvalue references for *this” for?
问题 What are the most typical use cases of "rvalue references for *this" which the standard also calls reference qualifiers for member functions? By the way, there is a really good explanation about this language feature here. 回答1: When called, each member function has an implicit object parameter that *this references. So (a) these normal function overloads: void f(const T&); void f(T&&); when called like f(x) ; and (b) these member function overloads: struct C { void f() const &; void f() &&; }