On Mon, Oct 17, 2011 at 11:18 AM, André Pönitz <[email protected]> wrote:
>> isn't QVarLengthArray what you're after?
>
> Except for the ugly name, a few missing convenience functions like 'indexOf',

well... yeah, i'm sure it could do with a better name, and some more
convenience-of-use. point is, it's there now, even if it's not ideal

> and the second template argument, sure ;-}

you don't have to use that - at least off the top of my head, it has a
default value.

> Given that QVector and QList cover the same ground in a lot of cases
> and QVector is not heavily used in Qt API (compared to QList) tweaking
> QVector seems to be the better choice from my perspective.

If they were an internal implementation detail, I'd agree. given that
you don't know how they are used outside of Qt, I don't think this is
a safe assumption - I've seen (and written) rather a lot of code
copying these around, and thus it's not something I'd personally want
to do.

thanks,

robin
_______________________________________________
Qt5-feedback mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback

Reply via email to