
27 Apr
2005
27 Apr
'05
7:24 p.m.
you're analogy with vector<string> don't quite fit IMO. assigning vector<string> might be quite efficient with very few heap-allocations taking place; assigning ptr_vector<Foo> would cost the same as copy-construction + deallocation.
IMO no performance point could justify omitting assignment operator. If I need vector<ptr_vector<Foo> > - it's my decision and I will deal with performance penalties. Gennadiy