As some of you may know, I'm hopeless when it comes to pointers. Today I was reading though an article at http://www.relisoft.com/resource/index.htm, and it mentioned auto_ptr. From what I can gather, auto_ptr seems to be like a pointer for newbies. For what I understand, as soon as it goes out of scope it gets deleted automatically, like javas garbage collector but without the overhead. Is this so?
Since I don't understand pointers very well, would it be safer for my program if I used auto_ptr? In what cases would I use a regular pointer rather than auto_ptr? And finally.. Should I bother calling delete on a pointer created by auto_ptr, or just leave it to go out of scope. And if I should delete it, how would I go about doing so?
Thanks for any information!