阅读背景:

如何擦除和删除存储在向量中的对象的指针?

来源:互联网 

I have a vector that stores pointers to many objects instantiated dynamically, and I'm trying to iterate through the vector and remove certain elements (remove from vector and destroy object), but I'm having trouble. Here's what it looks like:I have a vector that stores pointers to many ob




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: