So I\'m trying to get rid of my std::vector\'s by using boost::ptr_vector. Now I\'m trying to remove an element from one, and have the removed element deleted as well. The m
Curious thing: STL::vector<> is a Random Access Container, meaning that it uses Random Access Iterators.
So vec.erase(vec.begin()+N) will remove the element at index N.
Note that doing so breaks the whole iterator meme and you can no longer trivially switch between vectors and lists...