
23 Jun
2008
23 Jun
'08
3:59 p.m.
Mathias Gaunard wrote:
Ion Gaztañaga wrote:
The goal is that anyone experimenting with compilers with rvalue references (gcc 4.3 for now) can take advantage of containers that can hold movable-only types.
I hardly see how any other datatype than a vector (or a hash map) can require movability. For the rest, you only need to put in-place construction in the interface.
Don't forget deque and ordered vector family (once move semantics are in game, insertion performance is quite interesting). I don't see any problem to implement in-place for those containers and I would be able to provide in-place insertion ASAP. Meanwhile, users with movable objects can speed up their implementations. Regards, Ion