[Development] Container refactor update

Thiago Macieira thiago.macieira at intel.com
Thu Jun 21 09:14:31 CEST 2012


On quinta-feira, 21 de junho de 2012 08.26.23, Marc Mutz wrote:
> You meant
>    sizeof(T) <_=_ 32   _||_   T is movable,
> right?

Yes and no.

sizeof(T) <= 32 && T is movable

> Assuming move constructors become ubiquitous on types that you'd want to put
> into a homogeneous container, I wonder if a special case for large or
> non-movable types is needed at all.

I'll add move support to QVector.

But I want QList to always use realloc. If your type can't be realloc'ed, then 
QList should indirect.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120621/f9fcf411/attachment.sig>


More information about the Development mailing list