summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIvan Solovev <ivan.solovev@qt.io>2021-07-09 11:49:14 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-07-09 12:45:40 +0000
commit69c70ace059b497e81264722a3a3146a3c5f855e (patch)
tree8c6cc990611b5997708bbed7a7fa4d5b2fb320dd /src
parentefe834668d7daefe7904176480b30fedcfb6106b (diff)
QMap::erase - extend docs to specify iterator limitations
Task-number: QTBUG-91736 Change-Id: I4a226e0bbcde91f3149db9a0697981169ec25276 Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> (cherry picked from commit 74d6c36eb7b80cfdecd80c5e6f8c1f0604f0b496) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/tools/qmap.qdoc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/tools/qmap.qdoc b/src/corelib/tools/qmap.qdoc
index 593c4ba544..e7b412b0d9 100644
--- a/src/corelib/tools/qmap.qdoc
+++ b/src/corelib/tools/qmap.qdoc
@@ -669,6 +669,8 @@
from the map, and returns an iterator to the next item in the
map.
+ \note The iterator \a pos \e must be valid and dereferencable.
+
\sa remove()
*/
@@ -679,6 +681,8 @@
[\a first, \a last) from the map.
Returns an iterator to the item in the map following the last removed element.
+ \note The range \c {[first, last)} \e must be a valid range in \c {*this}.
+
\sa remove()
*/