09 2020 档案

摘要:字符串:类似vector,有空闲的空间 capacity和len,当长度小于1M时,每次扩容加倍,大于1M,每次扩容1M,最大512M hash: 相当于c++ unordered_map,当需要rehash时,不是一次性,而是循序渐进式将旧hash的内容一点点迁移到新的hash结构中(定时任务,以 阅读全文
posted @ 2020-09-30 00:43 zzyoucan 阅读(138) 评论(0) 推荐(0) 编辑
摘要:#include <vector> #include <algorithm> #include <iostream> #include <bitset> using namespace std; void print() {} template <typename T, typename... Ty 阅读全文
posted @ 2020-09-19 12:41 zzyoucan 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-09-07 23:26 zzyoucan 阅读(99) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示