Open wenfh2020 opened 2 years ago
https://wenfh2020.com/2021/04/20/stl-vector-push_back/
std::vector::push_back 内存是如何动态增长的:增加新元素,如果超过当时的容量,则容量会扩充至原来的两倍。
https://wenfh2020.com/2021/04/20/stl-vector-push_back/
std::vector::push_back 内存是如何动态增长的:增加新元素,如果超过当时的容量,则容量会扩充至原来的两倍。