Loading

Vector清空

STL中的VECTOR容器在.clear()之后清空内容但是没有释放内存
要释放内存要

vector<int>().swap(vec);
posted @ 2020-07-19 11:26  GrayKido  阅读(292)  评论(1编辑  收藏  举报