I am reading something about virtual table. When it comes to pointer __vptr
,
it is stated that by the author
Unlike the
*this
Both pointers are real in the sense that they store an address of something else in memory. By "real" the author means "stored within the class", as opposed to this
pointer, which is passed to member functions without being stored in the object itself. Essentially, the pointer to __vptr
is part of the object, while this
pointer is not.