qt5base-lts/tests/auto/corelib/tools/qsharedpointer
Giuseppe D'Angelo 358745d7de QSP/QWP: introduce owner_before, owner_equal, owner_hash
While at the moment we don't have aliasing support in QSharedPointer,
introduce owner-based comparisons and hashing. This also fulfills some
use cases in lieu of operator== for QWeakPointer (which got deprecated
by bb23a05905).

I'm using C++26/P1901's spelling of owner_equal, instead of
Boost.SmartPtr's spelling (owner_equal*s*). Given the niche use case,
the lack of interoperability with Qt's own containers, as well as the
Standard comparison objects' semantics (std::owner_less,
std::owner_equal), I don't think we should be giving these a Qt-ish name
as it would be pretty useless.

[ChangeLog][QtCore][QSharedPointer] Added owner_before, owner_equal,
owner_hash.
[ChangeLog][QtCore][QWeakPointer] Added owner_before, owner_equal,
owner_hash.

Done-with: Fabian Kosmale <fabian.kosmale@qt.io>
Change-Id: I8b792ae79f14cd518ba4a006edaa17786a8352a0
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2023-10-26 19:24:40 +02:00
..
.gitignore Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
CMakeLists.txt CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
externaltests.cpp QThread: add sleep(std::chrono::nanoseconds) overload 2023-03-13 23:26:28 +02:00
externaltests.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
forwarddeclared.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
forwarddeclared.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
nontracked.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
nontracked.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
tst_qsharedpointer.cpp QSP/QWP: introduce owner_before, owner_equal, owner_hash 2023-10-26 19:24:40 +02:00
wrapper.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
wrapper.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00