4 Feb
2026
4 Feb
'26
5:06 p.m.
Ion Gaztañaga wrote:
El 04/02/2026 a las 14:42, Peter Dimov via Boost escribió:
I read all that three times and I still don't understand what makes this better than just using a deque.
Probably because it's written to be read 10 times without saying much...
In the current implementation: smaller sizeof(), slightly better performance (due to fewer checks, not handling the "front" case), and better memory usage (deque uses a "move-to-middle" strategy when resizing the index).
Thanks. Speaking of move to middle, on an entirely unrelated note, do we have an implementation of move-to-middle vector-based deque?