C++ The This Pointer

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Remarks

The this pointer is a keyword for C++ therfore there is no library needed to implement this. And do not forget this is a pointer! So you cannot do:

 this.someMember();

As you access member functions or member variables from pointers using the arrow symbol -> :

this->someMember();

Other helpful links to the better understanding of the this pointer :

What is the 'this' pointer?

http://www.geeksforgeeks.org/this-pointer-in-c/

https://www.tutorialspoint.com/cplusplus/cpp_this_pointer.htm



Got any C++ Question?