このページでは

QtFuture::WhenAnyResult Struct

template <typename T> struct QtFuture::WhenAnyResult

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

ヘッダー: #include <qfuture_impl.h>
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

詳細な説明

WhenAnyResult<T> はテンプレート構造体であり、T はフューチャーの結果型を指定します。

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

QFuture およびQtFuture::whenAny()も参照してください 。

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

QFuture<T> WhenAnyResult::future

このフィールドには、型 `T` をパッケージ化する、最初に完了した `QFuture ` のコピーが格納されます。ここで、`T ` は、`whenAny()` に渡されたフューチャによってパッケージ化される型です。

QtFuture::whenAny()も参照してください 。

qsizetype WhenAnyResult::index

このフィールドには、whenAny() に渡された先物シークエンスの中で、最初に決済されたQFuture のインデックスが格納されます。型はqsizetype です。

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.