qt5base-lts/tests/auto/corelib/tools
Mårten Nordheim 734c8aa9d9 QSet: add insert(T&&)
We already have all we need in QHash to support this, so the addition
is simple enough.

Add test checking how many copies and/or moves are needed for a single
insert.

As a drive-by: remove some unneeded static_cast

Change-Id: Iaf768657644afa45f78f5c81ffcf89ba9607be96
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2020-12-02 10:17:11 +01:00
..
collections Replace discouraged Q_MOVABLE_TYPE by Q_RELOCATABLE_TYPE 2020-11-30 17:16:21 +01:00
containerapisymmetry Add tests for the new erase/erase_if for sequential containers 2020-12-01 23:03:32 +01:00
qalgorithms Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
qarraydata Android: exclude qarraydata::dataPointerAllocate() from CI tests 2020-11-20 21:38:02 +02:00
qbitarray CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qcache CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qcommandlineparser CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qcontiguouscache CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qcryptographichash CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qduplicatetracker QSet: add insert(T&&) 2020-12-02 10:17:11 +01:00
qeasingcurve Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
qexplicitlyshareddatapointer CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qflatmap CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qfreelist CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qhash QHash: support std::hash as hashing function 2020-11-30 17:16:22 +01:00
qhashfunctions CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qline Deal with {und,ov}erflow issues in QLine's length handling 2020-09-30 16:26:49 +02:00
qlist Replace discouraged Q_MOVABLE_TYPE by Q_RELOCATABLE_TYPE 2020-11-30 17:16:21 +01:00
qmacautoreleasepool CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qmakearray CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qmap CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qmargins QMargins(F): add support for structured binding 2020-11-22 02:22:20 +01:00
qmessageauthenticationcode QMessageAuthenticationCode: extend tests 2020-11-24 18:54:44 +01:00
qoffsetstringarray CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qpair Replace discouraged Q_MOVABLE_TYPE by Q_RELOCATABLE_TYPE 2020-11-30 17:16:21 +01:00
qpoint QPoint(F): add support for structured binding 2020-11-20 16:01:14 +02:00
qpointf QPoint(F): add support for structured binding 2020-11-20 16:01:14 +02:00
qqueue CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qrect Improve QRectF::toRect() 2020-10-12 13:00:43 +02:00
qringbuffer CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qscopedpointer Remove QScopedSharedPointer 2020-11-20 14:34:14 +01:00
qscopedvaluerollback CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qscopeguard Replace Q_REQUIRED_RESULT with [[nodiscard]] 2020-09-25 07:10:45 +02:00
qset QSet: add insert(T&&) 2020-12-02 10:17:11 +01:00
qsharedpointer Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
qsize CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qsizef CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qstl CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qtaggedpointer CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qtimeline CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qvarlengtharray Replace discouraged Q_MOVABLE_TYPE by Q_RELOCATABLE_TYPE 2020-11-30 17:16:21 +01:00
qversionnumber CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
.prev_CMakeLists.txt QDuplicateTracker: add tests 2020-12-01 14:42:52 +01:00
CMakeLists.txt QDuplicateTracker: add tests 2020-12-01 14:42:52 +01:00
tools.pro QDuplicateTracker: add tests 2020-12-01 14:42:52 +01:00