Let's say I have:
vector<T *> vect;
I know it's not the obvious way to go, but I have an API which does that, so I can't decide to use vector<T>
instead.
so when I put object in it I do:
vect.push_back(new T);
Will this code make sure that this vector is aligned contiguous since it's a vector of pointer? will this container decide of the behavior of the new
operator ?
EDIT:
will I also need to call a delete
on those ?