>The whole issue here is the "sure it is longer".
It's not the WHOLE issue. If you encounter... auto keys = theHash.keys(); ...in someone's code, you have to look around in the rest of the code to figure out what keys is, unless you are already familiar with the keys() function for whatever theHash is. ________________________________ From: Development <[email protected]> on behalf of Thiago Macieira <[email protected]> Sent: Wednesday, March 22, 2017 7:43:04 AM To: [email protected] Subject: Re: [Development] QList Em terça-feira, 21 de março de 2017, às 22:49:42 PDT, André Somers escreveu: > QVector<MyKeyType> keys; > keys.reserve(theHash.size()); > std::copy(theHash.keyBegin(), theHash.keyEnd(), std::back_inserter(keys)); > > Sure, it is longer than > auto keys = theHash.keys(); The whole issue here is the "sure it is longer". -- 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
_______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
