I was wondering, what is the official/more likely name of this? The first I thought it'd be called is "automatically dereferencing smart poitners" but I guess that's wrong.
This is what it is : a smart pointer template class, where if it's pointing to B, and B is destroyed (and then the destructor called etc), the pointer class would automatically set its contents to NULL (instead of &B).
Does this exist, say, in boost library or anything like that? Otherwise, I'm thinking of my own implementation, but yeah, would be nice to have a good idea of how it's supposed to be done.