vector

vector扩展内存时,不是在后面直接扩展,而是申请新的两倍内存,再把原数据拷贝的新的内存中再扩展
是为了保证内存的连续性

vector push_back

Table of Contents