diff options
author | Andreas Buhr <andreas.buhr@qt.io> | 2020-12-02 16:31:11 +0100 |
---|---|---|
committer | Andreas Buhr <andreas.buhr@qt.io> | 2020-12-02 18:08:38 +0100 |
commit | 3c0614b7794d917045a496144df506eeeb2a57c6 (patch) | |
tree | 3ba9517acc7af64c4166f1288ba3469768b99061 /src/corelib/tools | |
parent | 89734289d53020ac963e9ab098fc89d0ea3c0783 (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
Pick-to: 6.0
Change-Id: I93c59b66aa3d8ccf1888b6e24a4cc47004318e37
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/corelib/tools')
-rw-r--r-- | src/corelib/tools/qhash.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/corelib/tools/qhash.cpp b/src/corelib/tools/qhash.cpp index 19fed905dc..84eaed1ea1 100644 --- a/src/corelib/tools/qhash.cpp +++ b/src/corelib/tools/qhash.cpp @@ -2666,6 +2666,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> template <typename Predicate> qsizetype QMultiHash<Key, T>::removeIf(Predicate pred) \since 6.1 |