El 04/02/2026 a las 18:06, Peter Dimov via Boost escribió:
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?
Yeah: devector https://www.boost.org/doc/libs/latest/doc/html/container/non_standard_contai... Ion