diff --git a/src/corelib/thread/qfuture.qdoc b/src/corelib/thread/qfuture.qdoc index 2535d621ca..2822b96824 100644 --- a/src/corelib/thread/qfuture.qdoc +++ b/src/corelib/thread/qfuture.qdoc @@ -390,7 +390,7 @@ computations), i.e. until isFinished() returns \c true. */ -/*! \fn template T QFuture::result() const +/*! \fn template template> T QFuture::result() const Returns the first result in the future. If the result is not immediately available, this function will block and wait for the result to become @@ -405,7 +405,7 @@ \sa resultAt(), results(), takeResult() */ -/*! \fn template T QFuture::resultAt(int index) const +/*! \fn template template> T QFuture::resultAt(int index) const Returns the result at \a index in the future. If the result is not immediately available, this function will block and wait for the result to @@ -417,7 +417,7 @@ \sa result(), results(), takeResult(), resultCount() */ -/*! \fn template bool QFuture::isResultReadyAt(int index) const +/*! \fn template template> bool QFuture::isResultReadyAt(int index) const Returns \c true if the result at \a index is immediately available; otherwise returns \c false. @@ -428,7 +428,7 @@ \sa resultAt(), resultCount(), takeResult() */ -/*! \fn template QList QFuture::results() const +/*! \fn template template> QList QFuture::results() const Returns all results from the future. If the results are not immediately available, this function will block and wait for them to become available. Note that @@ -444,7 +444,7 @@ */ #if 0 -/*! \fn template std::vector QFuture::takeResults() +/*! \fn template template> std::vector QFuture::takeResults() If isValid() returns \c false, calling this function leads to undefined behavior. takeResults() takes all results from the QFuture object and invalidates it @@ -463,7 +463,7 @@ */ #endif -/*! \fn template std::vector QFuture::takeResult() +/*! \fn template template> std::vector QFuture::takeResult() \since 6.0 @@ -498,7 +498,7 @@ \sa takeResult(), result(), results(), resultAt() */ -/*! \fn template QFuture::const_iterator QFuture::begin() const +/*! \fn template template> QFuture::const_iterator QFuture::begin() const Returns a const \l{STL-style iterators}{STL-style iterator} pointing to the first result in the future. @@ -506,7 +506,7 @@ \sa constBegin(), end() */ -/*! \fn template QFuture::const_iterator QFuture::end() const +/*! \fn template template> QFuture::const_iterator QFuture::end() const Returns a const \l{STL-style iterators}{STL-style iterator} pointing to the imaginary result after the last result in the future. @@ -514,7 +514,7 @@ \sa begin(), constEnd() */ -/*! \fn template QFuture::const_iterator QFuture::constBegin() const +/*! \fn template template> QFuture::const_iterator QFuture::constBegin() const Returns a const \l{STL-style iterators}{STL-style iterator} pointing to the first result in the future. @@ -522,7 +522,7 @@ \sa begin(), constEnd() */ -/*! \fn template QFuture::const_iterator QFuture::constEnd() const +/*! \fn template template> QFuture::const_iterator QFuture::constEnd() const Returns a const \l{STL-style iterators}{STL-style iterator} pointing to the imaginary result after the last result in the future. @@ -936,7 +936,7 @@ \sa QtFuture::whenAny() */ -/*! \fn template static QFuture> QtFuture::connect(Sender *sender, Signal signal) +/*! \fn template> static QFuture> QtFuture::connect(Sender *sender, Signal signal) Creates and returns a QFuture which will become available when the \a sender emits the \a signal. If the \a signal takes no arguments, a QFuture is returned. If @@ -975,7 +975,7 @@ \sa QFuture, QFuture::then() */ -/*! \fn template static QFuture> QtFuture::makeReadyFuture(T &&value) +/*! \fn template> static QFuture> QtFuture::makeReadyFuture(T &&value) \since 6.1 \overload @@ -1319,7 +1319,7 @@ \sa onFailed(), onCanceled() */ -/*! \fn template template QFuture QFuture::onFailed(Function &&handler) +/*! \fn template template::HasExtraArgs>> QFuture QFuture::onFailed(Function &&handler) \since 6.0 @@ -1362,7 +1362,7 @@ \sa then(), onCanceled() */ -/*! \fn template template QFuture QFuture::onFailed(QObject *context, Function &&handler) +/*! \fn template template::HasExtraArgs>> QFuture QFuture::onFailed(QObject *context, Function &&handler) \since 6.1 \overload @@ -1390,7 +1390,7 @@ \sa then(), onCanceled() */ -/*! \fn template template QFuture QFuture::onCanceled(Function &&handler) +/*! \fn template template>> QFuture QFuture::onCanceled(Function &&handler) \since 6.0 @@ -1435,7 +1435,7 @@ \sa then(), onFailed() */ -/*! \fn template template QFuture QFuture::onCanceled(QObject *context, Function &&handler) +/*! \fn template template>> QFuture QFuture::onCanceled(QObject *context, Function &&handler) \since 6.1 \overload