-
Notifications
You must be signed in to change notification settings - Fork 0
std::vector
M. Bai edited this page Nov 18, 2020
·
2 revisions
看起来像是默认构造函数进行插入,比push_back
省略了拷贝函数的开销
https://zh.cppreference.com/w/cpp/container/vector/emplace_back
请求移除未使用的容量。
https://zh.cppreference.com/w/cpp/container/vector/shrink_to_fit
test page footer