From 2b699ff4ef11fde343d8d48c0426369b394828cb Mon Sep 17 00:00:00 2001 From: Ivan Solovev Date: Fri, 9 Jul 2021 18:35:58 +0200 Subject: [PATCH] QMultiMap::erase - extend docs to specify iterator limitations Task-number: QTBUG-91736 Change-Id: I7cd58e010af5dd59404e37c55f6ebd91c4631b3f Reviewed-by: Andrei Golubev Reviewed-by: Edward Welbourne (cherry picked from commit d1d9caf12d103957dccc867c349c4514a28cfe6c) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/tools/qmultimap.qdoc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/corelib/tools/qmultimap.qdoc b/src/corelib/tools/qmultimap.qdoc index d3af4e79736..bf7384f3f8b 100644 --- a/src/corelib/tools/qmultimap.qdoc +++ b/src/corelib/tools/qmultimap.qdoc @@ -699,6 +699,8 @@ from the multi map, and returns an iterator to the next item in the map. + \note The iterator \a pos must be valid and dereferenceable. + \sa remove() */ @@ -710,6 +712,8 @@ Returns an iterator to the item in the multi map following the last removed element. + \note The range \c {[first, last)} \e must be a valid range in \c {*this}. + \sa remove() */