Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You have the similar problems if you build your own resizeable arrays in C, unless you resort to an extra level of indirection (e.g. an array of pointers, or pointers to array chunks).

std::vector has a series of gotchas, but any generic resizeable array which has similar performance will have similar gotchas; std::vector wasn't made that way just for giggles.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: