Re:EA open sources their internal version of STL
by jemfinch on Tuesday October 26, 2010 @10:47AM
(#1834381)
There are actually implementations of deque which can store elements contiguously: imagine a vector where the "first element" is placed in the middle of the vector, and push_{front,back} reallocate whenever either end is reached. It wastes more memory than the typical deque implementation, but the elements are contiguous.
[ Parent
| on HN ]