summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qhash.cpp
diff options
context:
space:
mode:
authorAndreas Buhr <andreas.buhr@qt.io>2020-12-02 16:31:11 +0100
committerAndreas Buhr <andreas.buhr@qt.io>2020-12-04 13:00:11 +0100
commite6930edee3848f85fc77adec912adda126a28c7d (patch)
treea1f707d1cf7de33b2544c069122bbf7fc328c690 /src/corelib/tools/qhash.cpp
parent832a3fc4e1c492310e3b362a4a5acacbef6c7a29 (diff)
Document QMultiHash::clear function
When QMultiHash derived from QHash, it inherited the clear function and no separate documentation was necessary. Now, QMultiHash::clear needs its own documentation. This patch adds it. Task-number: 88533 Change-Id: I93c59b66aa3d8ccf1888b6e24a4cc47004318e37 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 3c0614b7794d917045a496144df506eeeb2a57c6) Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib/tools/qhash.cpp')
-rw-r--r--src/corelib/tools/qhash.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/corelib/tools/qhash.cpp b/src/corelib/tools/qhash.cpp
index 1087f21564..c2fd9db879 100644
--- a/src/corelib/tools/qhash.cpp
+++ b/src/corelib/tools/qhash.cpp
@@ -2646,6 +2646,15 @@ size_t qHash(long double key, size_t seed) noexcept
\sa remove()
*/
+/*!
+ \fn template <class Key, class T> void QMultiHash<Key, T>::clear()
+ \since 4.3
+
+ Removes all items from the hash and frees up all memory used by it.
+
+ \sa remove()
+*/
+
/*! \fn template <class Key, class T> T QMultiHash<Key, T>::take(const Key &key)
Removes the item with the \a key from the hash and returns