diff options
author | Marc Mutz <marc.mutz@qt.io> | 2022-05-06 18:37:16 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2022-05-07 23:19:05 +0200 |
commit | af50ec087e44a9102f4e66e7fed4385c108aced3 (patch) | |
tree | 26e295b2d1fa8125f0129e5033a7903f2a24e17a /src/qml/qml/qqmlpropertycachecreator_p.h | |
parent | cc49e68bdf5be947cd9a6aac07bc9915fe0c5af4 (diff) |
QBiPointer/QQmlRefPointer: add member-swap, don't use qSwap
All types that have a swap() overload should also define a
member-swap, and the ADL swap should call the member-swap. This
minimizes the work the compiler has to do to find a fitting swap
overload and experience shows that directly translates into
compilation speedups.
For the same reason, don't use qSwap(). It's is a monster that looks
for ADL overloads of swap() and also detects the noexcept of the
wrapped swap() function, so it should only be used when the argument
type is unknown.
Pick-to: 6.3 6.2 5.15
Task-number: QTBUG-97601
Change-Id: I4d390a8b51c97d025989c1ad8786cc37f26438c8
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlpropertycachecreator_p.h')
0 files changed, 0 insertions, 0 deletions