vector<int> vec_int;...;vec_int.clear();vector<int>().swap(vec_int); swap这一步必须要啊... 否则内存泄露的一塌糊涂啊... 这小技巧很值得学习。