diff --git a/src/corelib/tools/qhash.cpp b/src/corelib/tools/qhash.cpp index e72b3e1eb5..5f0b131342 100644 --- a/src/corelib/tools/qhash.cpp +++ b/src/corelib/tools/qhash.cpp @@ -736,7 +736,7 @@ void QHashData::checkSanity() #endif /*! - \fn uint qHash(const QPair &key, uint seed = 0) + \fn template uint qHash(const QPair &key, uint seed = 0) \since 5.0 \relates QHash @@ -746,7 +746,7 @@ void QHashData::checkSanity() */ /*! - \fn uint qHash(const std::pair &key, uint seed = 0) + \fn template uint qHash(const std::pair &key, uint seed = 0) \since 5.7 \relates QHash @@ -762,7 +762,7 @@ void QHashData::checkSanity() constraints, we cannot change the QPair algorithm to match the std::pair one before Qt 6. */ -/*! \fn uint qHashRange(InputIterator first, InputIterator last, uint seed = 0) +/*! \fn template uint qHashRange(InputIterator first, InputIterator last, uint seed = 0) \relates QHash \since 5.5 @@ -801,7 +801,7 @@ void QHashData::checkSanity() \sa qHashBits(), qHashRangeCommutative() */ -/*! \fn uint qHashRangeCommutative(InputIterator first, InputIterator last, uint seed = 0) +/*! \fn template uint qHashRangeCommutative(InputIterator first, InputIterator last, uint seed = 0) \relates QHash \since 5.5 @@ -1024,7 +1024,7 @@ uint qHash(long double key, uint seed) Q_DECL_NOTHROW Returns the hash value for the \a key, using \a seed to seed the calculation. */ -/*! \fn uint qHash(const T *key, uint seed = 0) +/*! \fn template uint qHash(const T *key, uint seed = 0) \relates QHash \since 5.0 @@ -2478,6 +2478,18 @@ uint qHash(long double key, uint seed) Q_DECL_NOTHROW Returns the underlying const_iterator this key_iterator is based on. */ +/*! \typedef QHash::const_key_value_iterator + \inmodule QtCore + \since 5.10 + \brief The QMap::const_key_value_iterator typedef provides an STL-style const iterator for QHash and QMultiHash. + + QHash::const_key_value_iterator is essentially the same as QHash::const_iterator + with the difference that operator*() returns a key/value pair instead of a + value. + + \sa QKeyValueIterator +*/ + /*! \typedef QHash::key_value_iterator \inmodule QtCore \since 5.10