Doc: Improve QMap, QMultiMap description

Make it clear that the fast lookup is by key, not by value.
See also discussion in

https://forum.qt.io/topic/121907/misleading-documentation-of-qhash-qmap/

Change-Id: I396297e0e4674e0a1f889f4138ab52ff224c0ee2
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch>
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
(cherry picked from commit 05146a77fce7f080eefad3f82a14e60c8e3ec464)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Kai Köhne 2020-12-18 14:44:01 +01:00 committed by Qt Cherry-pick Bot
parent 28ba7ac178
commit c236dd456e
2 changed files with 2 additions and 4 deletions

View File

@ -49,8 +49,7 @@
\reentrant
QMap\<Key, T\> is one of Qt's generic \l{container classes}. It
stores (key, value) pairs and provides fast lookup of the
value associated with a key.
stores (key, value) pairs and provides fast lookup by key.
QMap and QHash provide very similar functionality. The
differences are:

View File

@ -49,8 +49,7 @@
\reentrant
QMultiMap\<Key, T\> is one of Qt's generic \l{container classes}. It
stores (key, value) pairs and provides fast lookup of the
value associated with a key.
stores (key, value) pairs and provides fast lookup by key.
QMultiMap and QMultiHash provide very similar functionality. The
differences are: