Top "Auto-ptr" questions

A C++ template class that provides a limited garbage collection facility for pointers, by allowing pointers to have the elements they point to automatically destroyed when the auto_ptr object is itself destroyed.

std::auto_ptr to std::unique_ptr

With the new standard coming (and parts already available in some compilers), the new type std::unique_ptr is supposed …

c++ c++11 smart-pointers auto-ptr unique-ptr
Why is it wrong to use std::auto_ptr<> with standard containers?

Why is it wrong to use std::auto_ptr<> with standard containers?

c++ stl raii auto-ptr c++-faq
Why is auto_ptr being deprecated?

I heard auto_ptr is being deprecated in C++11. What is the reason for this? Also I would like to …

c++ c++11 smart-pointers auto-ptr
Is auto_ptr deprecated?

Will auto_ptr be deprecated in incoming C++ standard? Should unique_ptr be used for ownership transfer instead of shared_…

c++ standards smart-pointers auto-ptr unique-ptr
So can unique_ptr be used safely in stl collections?

I am confused with unique_ptr and rvalue move philosophy. Let's say we have two collections: std::vector<std::…

c++ c++11 auto-ptr unique-ptr
Smart pointers in container like std::vector?

I am learning about smart pointers (std::auto_ptr) and just read here and here that smart pointers (std::auto_…

c++ pointers std smart-pointers auto-ptr
how to test whether auto pointer is null?

I'm new to auto pointer. I have this: std::auto_ptr<myClass> myPointer(new MyClass(someArg)); How do …

c++ auto-ptr
std::unique_ptr vs std::shared_ptr vs std::weak_ptr vs std::auto_ptr vs raw pointers

What are the equivalent uses of each smart pointer in comparison to similar (but not limited to) some advanced techniques …

c++ shared-ptr unique-ptr auto-ptr weak-ptr
What is the difference between auto pointers and shared pointers in C++

I have heard that auto pointers own their object whereas shared pointers can have many objects pointing to them. Why …

c++ shared-ptr smart-pointers auto-ptr