vector小知识

可以用capacity计算vector实际开了的int数量。似乎是sizeof(v)+v.capacity()*4。

posted @ 2021-04-05 21:25  YouthRhythm  阅读(14)  评论(0)    收藏  举报