WhenAnyResult Struct

template <typename T> struct QtFuture::WhenAnyResult

QtFuture::WhenAnyResult は、 () の結果を表すために使用されます。QtFuture::whenAnyさらに...

ヘッダ #include <WhenAnyResult>
CMake: find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
qmake: QT += core
以来:Qt 6.3

パブリック変数

QFuture<T> future
qsizetype index

詳細な説明

QtFuture::WhenAnyResult<T> 構造体は、コピーのパッケージングに使用され、QtFuture::whenAny() に渡されるフューチャー・パッケージング型T のシーケンスで、最初に完了したQFuture<T> のインデックスを指定します。

QFuture およびQtFuture::whenAny()も参照のこと

メンバ変数のドキュメント

QFuture<T> WhenAnyResult::future

QFuture Tここで、T は、whenAny()に渡されたフューチャーによってパッケージ化されたタイプである。

QtFuture::whenAny()も参照のこと

qsizetype WhenAnyResult::index

このフィールドには、whenAny()に渡された一連の先物の中で、最初に完成したQFuture のインデックスが格納される。型はqsizetype

QtFuture::whenAny()も参照

© 2025 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.