I know this is silly and the title probably isn't the answer..
I always thought of this
as a pointer to the current object which is supplied in every method call from an object (which is not a static method)
but looking at what my code actually returns for example:
Test& Test::func ()
{
// Some processing
return *this;
}
the dereference of this
is returned... and the return type is a reference to the object.... so what does that make this
? Is there something under the hood I'm not understanding well?