diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2024-02-13 16:18:53 +0100 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2024-03-15 15:43:27 +0100 |
| commit | 7a8e7213e4fe3a83aff3146c0101bcfb2f925ea2 (patch) | |
| tree | bf7f88e2c32d2c99fa0fcc915aa989f593bbe4c5 /src/corelib/thread/qfutureinterface.cpp | |
| parent | 3092f367f0529e7035695948b1f1b1bf230bab0d (diff) | |
QMinimalFlatSet: support custom comparators
Add a template argument a la std::set and a ctor taking a Compare
object (thus supporting stateful comparators, too), and storing it in
QtPrivate::CompactStorage. Rewrite lookup() to use the stored
comparator instead of std::less, carefully avoiding a copy to match
what std::map implementations do, even though key_comp() itself is
specified to return by value.
Change-Id: I4f74aaf5eda0a4ed276e99f73f407042c2767828
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/corelib/thread/qfutureinterface.cpp')
0 files changed, 0 insertions, 0 deletions
