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/

Pick-to: 5.15 6.0
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>
bb10
Kai Köhne 2020-12-18 14:44:01 +01:00
parent 3ce5128d80
commit 05146a77fc
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: