How does ptr_vector manage memory?
问题 I'm currently getting myself into c++ for lower level coding with opengl. I come from a heavy objc background so I have some understanding about memory management but I can't seem to get how the "boost" library manages container types like ptr_vector . I think my problem is related to the fact that I have no idea how ptr_vector manages the destruction of itself and its objects. Please take a look at the following code: // Header file ... ptr_vector<IObject3D> objects; ... // Implementation