title: What happens if a object to which a smart pointer is pointing to commits suicide?
body: <p>I have objects that define their own "right of existence". Hence they have the possibility to commit suicide. What happens to a smart pointer that holds it? Will it be dangling or does the pointer recognises that the object destroyed itself and thus point to NULL automatically?</p>
  
  <p>From outside the object I would use <code>ptr.reset()</code>. But what can I do from inside the object?</p>