diff options
author | João Abecasis <joao.abecasis@nokia.com> | 2012-02-16 23:27:07 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-02 16:34:21 +0200 |
commit | 646dc6c5daeefa99c9af070802c39bc66dc4f1f0 (patch) | |
tree | 98d32dd8f36d4842736755235d5d3bcb0b9ff92d /doc/src/snippets/code/doc_src_layout.cpp | |
parent | e4682cc88000b52e67380b227cc42726c869afe2 (diff) | |
download | qtbase-646dc6c5daeefa99c9af070802c39bc66dc4f1f0.tar.gz |
Introduce QArrayDataOps::appendInitialize
Adds given number of default-initialized elements at end of array. For
POD types, initialization is reduced to a single memset call. Other
types get default constructed in place.
As part of adding a test for the new functionality the arrayOps test was
extended to verify objects are being constructed and assigned as
desired.
Change-Id: I9fb2afe0d92667e76993313fcd370fe129d72b90
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'doc/src/snippets/code/doc_src_layout.cpp')
0 files changed, 0 insertions, 0 deletions