会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
orgrice
博客园
首页
新随笔
联系
订阅
管理
2021年12月26日
std::map tip
摘要: std::map tip 1226 1.map 的底层实现是红黑树,会根据key值自动排序,for循环中要避免对map进行插入删除操作,不然很容易被自动排序导致v取不到插入的值。 #include <iostream> #include <map> int main() { std::map<std
阅读全文
posted @ 2021-12-26 18:20 orgrice
阅读(66)
评论(0)
推荐(0)
公告