Y
Hacker News
new
|
ask
|
show
|
jobs
by
frankchn
1315 days ago
Simple, you just allocate a bigger contiguous chunk of memory and copy the entire vector over when the current chunk maxes out.