C++:容器

vector

内存释放:

1. vector<int>().swap(v);

2.v.clear();

   v.shrik_to_fit();

猜你喜欢

转载自www.cnblogs.com/tomatokely/p/9700876.html
今日推荐