Boost logo

Boost Users :

From: Meryl Silverburgh (silverburgh.meryl_at_[hidden])
Date: 2008-07-16 17:56:52


Hi,
In my code, I have this:
A pointer to a vector of pointer to A:

vector<A*>*

Can I switch it to:

shared_ptr< vector< shared_ptr <A> > > ?

a shared pointer to a vector of shared pointer of A?

And when the reference count reaches to 0, will it remove everything?
the memory of the vector and all the A objects pointed by the vector?


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net