Questions tagged [auto-ptr]

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. Deprecated as of C++11 in favor of unique_ptr.

auto_ptr is deprecated as of C++11. For the C++11 equivalent, unique_ptr, see the reference page.

Reference page for auto_ptr.

197 questions
-1
votes
2 answers

std::vector of object containing auto_ptr behaves strangely

I want to create a control panel for my application using Qt library and for this i create class Controls class Controls : create a slider and spin and a label and orgnize them in horizontal layout . but when i want to create std::vector
-2
votes
1 answer

Auto _ptr implementation

double **mat; int i,j; mat=new double *[a]; for(i=0;i
1 2 3
13
14