Implementing clean and simple move symantics

Martin Sebor sebor@roguewave.com
Wed Nov 24 17:37:00 GMT 2004


Chris Jefferson wrote:
...
> Hmm.. I'll have to think about this a bit. In actual fact, I think all 
> of the standard containers look like they can be moved by memmove,

I'm not sure about your implementation but ours stores the allocator
object in the container and in the rare case when the allocator has
non-trivial state the container may not be movable. But I haven't
been following this whole thread and you may have already discussed
this case and dealt with it. In that case, sorry about butting in :)

Martin



More information about the Libstdc++ mailing list