Boost logo

Boost Users :

From: Kevin Heifner (heifnerk_at_[hidden])
Date: 2008-05-16 07:23:07


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

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net