On Monday 10 August 2015 02:36:20 Kevin Kofler wrote: > Thiago Macieira wrote: > > That is exactly what this proposal is not about. If you have a trait that > > indicates your object type is trivially destrucible movable (a.k.a. > > "trivially relocatable"), then we won't do memmove at all. We'll just do > > realloc, period. > > realloc doesn't work if you are inserting or removing in the middle of a > vector.
Sure it does. It's required if you need to insert anywhere but don't have enough space. Now, if you're not appending to the end, you'll need to memmove elements around, sure. But that's a second step. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center _______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
