News for hackers. Stuff that matters.
Re:Double-ended vector – is it useful? by bob8 on Monday May 23, 2016 @10:54AM (#11754230)
Can't you have a regular vector and place the place the appended items on the even indices and prepended items on the odd? If you keep count of how many prepended and appended items you have you have identical performance to a regular vector except a worst case doubling of memory.

There are no comments on this comment yet.