summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qset.qdoc
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2015-12-03 12:56:56 +0100
committerLiang Qi <liang.qi@theqtcompany.com>2015-12-19 07:41:47 +0000
commit0f923a8ce45a0b9379bf0a43e68897a3a8333fda (patch)
treee7948faa4fcb23039becf5585a6e732599eef0ee /src/corelib/tools/qset.qdoc
parent90f79db90a8db5b872040346bd58a27140b6a7a3 (diff)
QHash/QSet: add erase(const_iterator)
This is the signature the functions have in C++11. For the std containers, this is just convenience, but for Qt containers with their implicit sharing problem, the combination of erase() with constFind() can delay a detach until absolutely necessary. [ChangeLog][QtCore][QHash/QSet] Added erase(const_iterator). Change-Id: I2fc841c664cd7515b0f56fd7210fcd17c37f9014 Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'src/corelib/tools/qset.qdoc')
-rw-r--r--src/corelib/tools/qset.qdoc10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/corelib/tools/qset.qdoc b/src/corelib/tools/qset.qdoc
index 542def4651..df33f716e9 100644
--- a/src/corelib/tools/qset.qdoc
+++ b/src/corelib/tools/qset.qdoc
@@ -257,8 +257,8 @@
*/
/*!
- \fn QSet::iterator QSet::erase(iterator pos)
- \since 4.2
+ \fn QSet::iterator QSet::erase(const_iterator pos)
+ \since 5.7
Removes the item at the iterator position \a pos from the set, and
returns an iterator positioned at the next item in the set.
@@ -270,6 +270,12 @@
\sa remove(), find()
*/
+/*!
+ \fn QSet::iterator QSet::erase(iterator pos)
+ \since 4.2
+ \overload
+*/
+
/*! \fn QSet::const_iterator QSet::find(const T &value) const
\since 4.2