
16 May
2008
16 May
'08
11:23 a.m.
Patrick Loney wrote:
What you need is something that guarantees not to move its elements rather than something that doesn’t guarantee contiguous memory. I don’t know if deque does this but you could end up with code that only works if it’s built with the right compiler…
The spec says for a deque, "An insert at either end of the deque invalidates all the iterators to the deque, but has no effect on the validity of references to elements of the deque." However, is the requirement to only append and never erase? That seems unlikely. KevinH -- Kevin Heifner heifner @ ociweb.com http://heifner.blogspot.com Object Computing, Inc. (OCI) www.ociweb.com