In questa pagina

QtFuture::WhenAnyResult Struct

template <typename T> struct QtFuture::WhenAnyResult

QtFuture::WhenAnyResult viene utilizzato per rappresentare il risultato di ` QtFuture::whenAny()`. Per saperne di più...

Intestazione: #include <qfuture_impl.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
qmake: QT += core
A partire da: Qt 6.3

Variabili pubbliche

QFuture<T> future
qsizetype index

Descrizione dettagliata

WhenAnyResult<T> è una struttura template in cui T specifica il tipo di risultato dei futures.

La struttura ` QtFuture::WhenAnyResult<T> ` viene utilizzata per racchiudere la copia e l'indice del primo ` QFuture<T> ` completato nella sequenza di `futures` di tipo ` T `, che vengono passati a ` QtFuture::whenAny()`.

Vedi anche QFuture e QtFuture::whenAny().

Documentazione sulle variabili membro

QFuture<T> WhenAnyResult::future

Il campo contiene la copia del primo QFuture completato che incapsula il tipo T, dove T è il tipo incapsulato dai futures passati a whenAny().

Vedi anche QtFuture::whenAny().

qsizetype WhenAnyResult::index

Il campo contiene l'indice del primo contratto " QFuture " completato nella sequenza di contratti futures passati alla funzione ` whenAny()`. È di tipo ` qsizetype`.

Vedi anche QtFuture::whenAny().

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.