16 Jul
2008
16 Jul
'08
9:56 p.m.
Hi, In my code, I have this: A pointer to a vector of pointer to A: vector* 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?