Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on A Story Of realloc (And Laziness). Parent comment
The standard library actually does have a built in container that's (almost) exactly as you describe, though. It's called std::deque (http://www.cplusplus.com/reference/deque/deque/).
There are no comments on this comment yet.
The standard library actually does have a built in container that's (almost) exactly as you describe, though. It's called std::deque (http://www.cplusplus.com/reference/deque/deque/).