diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2020-06-17 16:18:55 +0200 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2020-08-06 19:15:39 +0200 |
commit | bd2bcd4e1d38f18d2716cbebf7d106c090564217 (patch) | |
tree | 75143cec873449fdd86a277a46cab4e24b5f0bfe /src/corelib/tools/qmultimap.qdoc | |
parent | 4fc539bd846f08c5e448810e263f3850593b8dc2 (diff) |
QMultiMap: add range erase
Also remove duplication by centralizing the main code for
erase(), and implement erase(pos) in terms of erase(first, last).
Change-Id: Ie0272ebac92fd7da48c31f9d68e69a2faa583bbc
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qmultimap.qdoc')
-rw-r--r-- | src/corelib/tools/qmultimap.qdoc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/corelib/tools/qmultimap.qdoc b/src/corelib/tools/qmultimap.qdoc index 3d1081d28b..678dbfaee9 100644 --- a/src/corelib/tools/qmultimap.qdoc +++ b/src/corelib/tools/qmultimap.qdoc @@ -664,6 +664,17 @@ \sa remove() */ +/*! \fn template <class Key, class T> QMultiMap<Key, T>::iterator QMultiMap<Key, T>::erase(const_iterator first, const_iterator last) + \since 6.0 + + Removes the (key, value) pairs pointed to by the iterator range + [\a first, \a last) from the multi map. + Returns an iterator to the item in the multi map following the last + removed element. + + \sa remove() +*/ + /*! \fn template <class Key, class T> QMultiMap<Key, T>::iterator QMultiMap<Key, T>::find(const Key &key) Returns an iterator pointing to the item with key \a key in the |