diff options
author | Marc Mutz <marc.mutz@qt.io> | 2022-01-09 10:07:34 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-01-13 14:17:48 +0000 |
commit | 4f1b14afe674998da5333773b0869d999cdc475f (patch) | |
tree | f49b8ca37905f1010579575ddbe8af1847cd2333 /qmake | |
parent | c067eea1d9df1d6793b7625651974c111c9af8a8 (diff) |
QFlatMap: add insert_or_assign
This does exactly what insert() on Qt associative containers does, but
allows to express the intent of using the STL-incompatible Qt insert()
semantics, in an STL-compatible way, instead of leaving the reader of
the code wondering what semantics are expected.
This is part of a very-long-term goal of fixing Qt associative
container's insert() behavior, in which QFlatMap, being an affected,
but private-API type, is used for proof-of-concept purposes.
Task-number: QTBUG-99651
Change-Id: I69010285438259918aef659d3235180c1b5be696
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
(cherry picked from commit 6891e10f9717a51b72583bf18e5a1a8d5f5fd527)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'qmake')
0 files changed, 0 insertions, 0 deletions