Re: [Interest] QVector::resize / QList
On Monday November 17 2014 22:23:15 Philippe wrote: There is a QVector::resize but no QList::resize Any design reason for this? Vector classes are often designed for speed (for instance to support SIMD operations), lists for flexibility. I don't know if that difference applies to QVector and QList too, but if it does, QList::resize might be missing because implicit/automatic. R. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] QVector::resize / QList
Il 17/11/2014 22:23, Philippe ha scritto: Any design reason for this? No, simply nobody implemented it so far. (And given that QList is the preferred return type in Qt APIs, I've hit my face against this many many times. However there's the long trend of moving towards QVector...) Contributions are welcome, anyhow. -- Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Software Engineer KDAB (UK) Ltd., a KDAB Group company Tel. UK +44-1738-450410, Sweden (HQ) +46-563-540090 KDAB - Qt Experts - Platform-independent software solutions smime.p7s Description: Firma crittografica S/MIME ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
Re: [Interest] QVector::resize / QList
On Monday 17 November 2014 22:47:51 Giuseppe D'Angelo wrote: Il 17/11/2014 22:23, Philippe ha scritto: Any design reason for this? No, simply nobody implemented it so far. (And given that QList is the preferred return type in Qt APIs, I've hit my face against this many many times. However there's the long trend of moving towards QVector...) Contributions are welcome, anyhow. I've just set the task (QTBUG-42732) to unassigned. If someone wants to implement it, go ahead. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest