The pointer is just a handle to the object, setting it to null_ptr does not affect the object in anyway.
If you assign a pointer to another pointer, then both are independent handles to the same object.
Neither, it uses the object that is pointed to.
The other way around.
The pointer "object" is totally irrelevant, the only thing that matters is the memory location (object instance) the pointer refers/points to.
Cheers,
_






Reply With Quote
Bookmarks