摘要: 使用reserve来避免不必要的重新分配 对于vector和string,增长过程类似于realloc 1.分配一块大小为当前容量... 阅读全文
posted @ 2021-10-30 15:15 Kiris 阅读(34) 评论(0) 推荐(0)
摘要: #include <iostream> #include <vector> #include <string> #include <list> #include <deque> #include <string> #include <set> #include <map> #include <alg 阅读全文
posted @ 2021-10-30 11:37 Kiris 阅读(72) 评论(0) 推荐(0)