QtFuture::WhenAnyResult Struct

模闆 <typename T> 結構 QtFuture ::WhenAnyResult

QtFuture::WhenAnyResult is used to represent the result of QtFuture::whenAny (). 更多...

頭: #include <WhenAnyResult>
CMake: find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
qmake: QT += core
Since: Qt 6.3

公共變量

QFuture<T> future
qsizetype index

詳細描述

The QtFuture::WhenAnyResult<T> struct is used for packaging the copy and the index of the first completed QFuture<T> in the sequence of futures packaging type T that are passed to QtFuture::whenAny ().

另請參閱 QFuture and QtFuture::whenAny ().

成員變量文檔編製

QFuture < T > WhenAnyResult:: future

The field contains the copy of the first completed QFuture that packages type T ,其中 T is the type packaged by the futures passed to whenAny ().

另請參閱 QtFuture::whenAny ().

qsizetype WhenAnyResult:: index

The field contains the index of the first completed QFuture in the sequence of futures passed to whenAny (). It has type qsizetype .

另請參閱 QtFuture::whenAny ().