阅读背景:

如何设置std的初始大小::向量?

来源:互联网 

I have a vector<CustomClass*> and I put a lot of items in the vector and I need fast access, so I don't use list. How to set initial size of vector (for example to be 20 000 places, so to avoid copy when I insert new)? and I put a lot o




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

分享到: