Check a object exists or not

how can i check that a particular object still exist or it has been deleted ?

Thanks
closed account (EzwRko23)
You can't.
@OP
Can you be more specific?
Indeed you can't. The memory itself is not in any way different whether it's used or not.
You have to create such system which knows of this.
Say what is your problem exactly, if you want us to help you to come up with such system.
Weak pointers. But they require that the object's lifetime be managed by shared pointers.

http://www.boost.org/doc/libs/1_44_0/libs/smart_ptr/weak_ptr.htm
Topic archived. No new replies allowed.