Type of ‘this’ pointer
The type of this pointer is either ClassName * or const ClassName *, depending on whether it is inspected inside a non-const or const method of the class ClassName. Pointer this is not an lvalue. class ClassName { void foo() { // here `this` has `ClassName *` type } void bar() const { // here … Read more