阅读背景:

如何创建通用的std :: vector析构函数?

来源:互联网 

Having a vector containing pointers to objects then using the clear function doesn't call the destructors for the objects in the vector. I made a function to do this manually but I don't know how to make this a generic function for any kind of objects that might be in the vector.Having a vector containing pointers to objects




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

分享到: