Il 17/05/19 09:35, Bernhard Lindner ha scritto:
I start wondering if it is possible to wrap the STL containers in Qt6 and give 
them a
nice, intuitive, Qt-like API while still providing full STL compatibility. I am 
sure this
has been evaluated. Are the results documented somewhere?

I've done this experiment for QMap / QHash / QSet, where keeping COW at the cost of an extra indirection (dptr -> [refcount + std:: class] -> actual data) is more acceptable since these classes jump all over the memory anyhow. Basically "it worked", still requiring a few changes though, e.g. std::unordered_map iterators are forward, QHash ones are bidirectional. If the SIC is acceptable, something to consider for Qt 6.

My 2 c,
--
Giuseppe D'Angelo | giuseppe.dang...@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

Attachment: smime.p7s
Description: Firma crittografica S/MIME

_______________________________________________
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development

Reply via email to