C++ vector的增长是按指数级别。

push ,vector 容量为1,再push 容量为2,,超2 变 4 ,超4 变8,超8 变16.。。。。。

posted @ 2014-07-17 12:55  魔峥  阅读(180)  评论(0)    收藏  举报