VISH
0.2
|
The Omega pointer - forcibly makes an end to objects. More...
#include </home/werner/origo/vish/memcore/OmegaPtr.hpp>
The Omega pointer - forcibly makes an end to objects.
A specially lethal pointer which destructs the object that it points to, no matter how many other strong reference pointers might refer to it. All other strong and weak pointers to the same object will be invalidated.
Omega pointers keep reference-counted objects alive, same as strong pointers, but while with strong pointers the last one kills the respective object, for Omega pointers the first one kills it. Once a Omega pointer gets ahold of an object, no strong pointer can keep that object alive.