Top "This-pointer" questions

The "this" pointer is a compiler generated pointer during a function call that points to the object upon which that function gets called.

std::shared_ptr of this

I am currently trying to learn how to use smart pointers. However while doing some experiments I discovered the following …

c++ this shared-ptr this-pointer
Const mismatches: 2 overloads have no legal conversion for 'this' pointer

I'm getting this weird error: error C2663: 'sf::Drawable::SetPosition' : 2 overloads have no legal conversion for 'this' pointer I think …

c++ vector constants this-pointer
Type of 'this' pointer

As mentioned in the title, I would like to know about the type of 'this' pointer. I'm working on a …

c++ class this-pointer
VueJS Error in v-on handler variable this. is undefined

Working in VueJS with MongoDB/Express backend api, attempting to add post a new record to the Bookmarks model with …

javascript vue.js this-pointer
C++ how to pass 'this' to pointer reference

i have main class that i like to pass its pointer reference to on of the objects i creating but …

c++ argument-passing this-pointer
jQuery $(this) inside function

I want to pass $(this) to function but I am not sure. There is one similar thread, but I still …

javascript jquery this-pointer
Where is the 'this' pointer stored in computer memory?

Where exactly is the 'this' pointer stored in memory? Is it allocated on the stack, in the heap, or in …

c++ this-pointer
Is it safe to return *this as a reference?

Returning reference to this object is often used in assignment operator overloading. It is also used as a base for …

c++ reference this this-pointer
shared_ptr and the this-pointer

OK, I started using shared-pointers and pass shared-pointers as much as possible. No conversion to raw pointers anymore. This works …

c++ this this-pointer shared-ptr
Assigning C++ function pointers to member functions of the same object

How do I get the function pointer assignments (and maybe the rest) in test.calculate to work? #include <iostream&…

c++ member-function-pointers this-pointer