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

> If you reserve() space for 1 more element a 1000 times, you will get ~30 reallocations, not 1000.

Surely you mean ~10 reallocations, because 2^10=1024, right?



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

Search: