What is auto_ptr?
a pointer to a variable which is declared as auto.
it is same as normal pointer.
it is a template class, which has the similar functionality of a pointer , but it will take care of memory leaks.
a dangling pointer is called as auto_ptr.
Back To Top