giuseppe.dangelo at kdab.com
Fri May 17 10:18:16 CEST 2019
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.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...
Size: 4329 bytes
Desc: Firma crittografica S/MIME
More information about the Development