Learning smart pointers and stumble upon this problem: How would I create a vector with objects that auto deletes themselves? Below is a snippet of how I have it at the moment, is this the correct way to ensure I don't need to call delete on anything?
unique_ptr<vector<unique_ptr<OBJ>>> list(new vector<unique_ptr<OBJ>>);