diff --git a/src/corelib/tools/qlist.h b/src/corelib/tools/qlist.h index 7ec62f33e50..58676eeb1f0 100644 --- a/src/corelib/tools/qlist.h +++ b/src/corelib/tools/qlist.h @@ -352,7 +352,7 @@ public: bool contains(const AT &t) const noexcept; #endif - template + template qsizetype count(const AT &t) const noexcept { return qsizetype(std::count(&*cbegin(), &*cend(), t)); diff --git a/src/corelib/tools/qlist.qdoc b/src/corelib/tools/qlist.qdoc index 1da4239d10d..a6c011b2bf6 100644 --- a/src/corelib/tools/qlist.qdoc +++ b/src/corelib/tools/qlist.qdoc @@ -1013,7 +1013,7 @@ */ -/*! \fn template qsizetype QList::count(parameter_type value) const +/*! \fn template template qsizetype QList::count(const AT &value) const Returns the number of occurrences of \a value in the list.