C++:容器

vector

内存释放:

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

2.v.clear();

   v.shrik_to_fit();

posted @ 2018-09-25 17:49  番茄玛丽  阅读(102)  评论(0编辑  收藏  举报