qt5base-lts/tests/auto/corelib
Marc Mutz 2e1763d83a Non-associative containers: add range constructors
Something nice we'd like to detect for array-backed containers
is if the iterator passed is a Contiguous one; if the type is also
trivially copyable / Q_PRIMITIVE_TYPE, we could memcpy() the whole
range.

However, there's no trait in the Standard to detect contiguous
iterators (the best approximation would be detecting if the iterator
is actually a pointer). Also, it's probably not smart to do the work
now for QVector since QVector needs refactoring anyhow, and this work
will be lost.

QString and QByteArray are left in another commit.

[ChangeLog][QtCore][QVector] Added range constructor.

[ChangeLog][QtCore][QVarLengthArray] Added range constructor.

[ChangeLog][QtCore][QList] Added range constructor.

[ChangeLog][QtCore][QStringList] Added range constructor.

[ChangeLog][QtCore][QLinkedList] Added range constructor.

[ChangeLog][QtCore][QSet] Added range constructor.

Change-Id: I220edb796053c9c4d31a6dbdc7efc5fc0f6678f9
Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
2019-04-17 08:11:21 +00:00
..
animation Extend blacklisting of tst_qparallelanimationgroup tests to macOS 10.13 2018-09-24 21:13:30 +00:00
codecs Add tests for decoding too-short UTF-8 sequences 2018-09-25 22:14:07 +00:00
global Replace Q_DECL_NOTHROW with noexcept the remaining places 2019-04-09 14:48:42 +00:00
io Merge remote-tracking branch 'origin/5.13' into dev 2019-04-11 07:47:21 +02:00
itemmodels Replace qMove with std::move 2019-04-06 11:00:38 +00:00
kernel Merge remote-tracking branch 'origin/5.13' into dev 2019-04-11 07:47:21 +02:00
mimetypes QMimeDatabase: update freedesktop.org.xml to shared-mime-info 1.10 2018-11-13 11:16:11 +00:00
plugin moc: Add a standard way of specifying a URI as part of Q_PLUGIN_METADATA 2019-04-11 14:43:27 +00:00
serialization Replace Q_DECL_NOTHROW with noexcept the remaining places 2019-04-09 14:48:42 +00:00
statemachine Stabilize tst_QStateMachine::dontProcessSlotsWhenMachineIsNotRunning 2019-03-22 19:24:19 +00:00
thread Replace qMove with std::move 2019-04-06 11:00:38 +00:00
tools Non-associative containers: add range constructors 2019-04-17 08:11:21 +00:00
corelib.pro Create corelib/serialization and move existing file formats into it 2018-01-26 20:59:50 +00:00