[Interest] QVector / std::vector and memory alignment

Giuseppe D'Angelo giuseppe.dangelo at kdab.com
Fri Dec 30 11:45:22 CET 2016


Il 29/12/2016 13:03, Thiago Macieira ha scritto:
> How is it ia win for std::vector to achieve next year what QVector has done 
> for the past 7 or 8?

Because with std::vector it has been possible for the last 16 years (by
using a custom allocator), _and_ this behaviour has been well-defined by
a Standard (unlike QVector, whose behaviour has always been undocumented
/ implementation defined, and possibly changed between Qt 3/4/5 and
maybe will change again in Qt 6).

-- 
Giuseppe D'Angelo | giuseppe.dangelo at kdab.com | Senior Software Engineer
KDAB (UK) Ltd., a KDAB Group company | Tel: UK +44-1625-809908
KDAB - Qt, C++ and OpenGL Experts

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


More information about the Interest mailing list