ptr_vector manages the lifetime of the pointed-to objects automatically. You don't have to call delete yourself.
At the same time, it avoids the overhead of shared_ptr that would get if you used a vector of shared_ptrs, which is often not necessary.
ptr_vector manages the lifetime of the pointed-to objects automatically. You don't have to call delete yourself.
At the same time, it avoids the overhead of shared_ptr that would get if you used a vector of shared_ptrs, which is often not necessary.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law