[Interest] Operator QMap<uint, uint>[] is casting to int?

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Tue May 7 18:46:40 CEST 2019

Il 07/05/19 17:02, Jason H ha scritto:
> Given how often I miss indexing negatives (to index from the end) It seems that we could do this in Qt6?
> /me ducks

Note that you can (today!) use a range::view::reverse and pass positive 
indexes, counting backwards from the end. Adding this specific feature 
to QVector::operator[] won't be exactly welcomed (it'll add a branch 
inside inside of it).

My 2 c,

Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4329 bytes
Desc: Firma crittografica S/MIME
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20190507/56f3e1bc/attachment.bin>

More information about the Interest mailing list