会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
CT1104
博客园
新随笔
新文章
联系
管理
2014年7月12日
使用STL vector的几种清空容器(删除)办法
摘要: vectorvecInt;for(inti=0;i::iteratoriter=vecInt.begin();for(;iter!=vecInt.end();){ iter=vecInt.erase(iter);}j=vecInt.capacity();//j=512i=vecInt.size(...
阅读全文
posted @ 2014-07-12 09:42 CT1104
阅读(609)
评论(0)
推荐(0)