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

What you're talking about is some sort of rope data structure which is pretty simple to implement on top of std::vector and std::list. The std::vector guarantees contiguous memory locations so you can't do it for that particular container.


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

Search: