title: How does c++ auto_ptr relate to managed pointers (Java, C#...)
body: <p>I come from a managed world and c++ automatic memory management is quite unclear to me</p>
  
  <p>If I understand correctly, I encapsulate a pointer within a stack object and when auto_ptr becomes out of scope, it automatically calls delete on the pointed object?</p>
  
  <p>What kind of usage should I make of it and how should I naturally avoid inherent c++ problems?</p>