qt5base-lts/src
Marc Mutz 05888490db QSet: de-pessimize binary operators
Overload the binary QSet operators |, &, + and - for rvalue LHSs, so
chained operations like e.g. in qgesturemanager.cpp:

        QSet<QGesture *> endedGestures =
                finishedGestures + canceledGestures + undeliveredGestures + maybeToCanceledGestures;

become as efficient as chained op+= calls.

Make the operators hidden friends as a drive-by.

[ChangeLog][QtCore][QSet] The binary operators &, |, + and - are now
hidden friends, and chaining them has been made a lot more efficient.

Change-Id: I55d2247b11d088eb1ef88608f89d2bf9e1daeb58
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2023-10-12 21:38:54 +02:00
..
3rdparty Remove 'SecurityCritical' attribute for psl-data 2023-10-04 18:36:53 +00:00
android Android: Simplify Qt for Android hierarchy, less Java reflection! 2023-10-12 19:16:47 +03:00
assets Add XDG theme file for example icons 2023-06-26 17:32:10 +00:00
concurrent Doc: Fix warnings and linking issues 2023-10-09 17:24:07 +00:00
corelib QSet: de-pessimize binary operators 2023-10-12 21:38:54 +02:00
dbus Doc: Fix warnings and linking issues 2023-10-09 17:24:07 +00:00
entrypoint src: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-10 23:36:51 +01:00
gui Include what you need: <QPointer> 2023-10-12 21:38:54 +02:00
network Include what you need: <QPointer> 2023-10-12 21:38:54 +02:00
opengl Include what you need: <QPointer> 2023-10-12 21:38:54 +02:00
openglwidgets QOpenGLWidget: Call glClear in the default paintGL implementation 2023-09-04 11:46:29 +02:00
platformsupport Include what you need: <QPointer> 2023-10-12 21:38:54 +02:00
plugins Include what you need: <QPointer> 2023-10-12 21:38:54 +02:00
printsupport Include what you need: <QPointer> 2023-10-12 21:38:54 +02:00
sql QSqlDatabase: check if QCoreApplication::instance() exists 2023-10-12 06:16:46 +02:00
testlib Doc: Fix warnings and linking issues 2023-10-09 17:24:07 +00:00
tools windeployqt: Don't copy files from unneeded QML modules 2023-10-10 13:19:34 +02:00
widgets Include what you need: <QPointer> 2023-10-12 21:38:54 +02:00
xml Doc: Fix warnings and linking issues 2023-10-09 17:24:07 +00:00
CMakeLists.txt Add Qt icon library for examples 2023-04-22 18:14:38 +03:00