realloc
C++なら問答無用でstd::list