【笔记】 vector 的内存释放 注意到有一些卡空间屑题,故记录此。 std::vector<int> vec; vec.clear(); std::vector<int>(vec).swap(vec);