Can someone show me an example of when using *this is useful please. Preferable code, and not an explanation, but doesn't need to be detailed or necessarily compilable.
this points to the object that was passed as the this parameter. In these two calls, this points to A and has the same value as B:
A.f();
B->f();
Dereferencing a pointer to an object gets the object. *this is the object.