QtFuture::WhenAnyResult Struct
template <typename T> struct QtFuture::WhenAnyResultQtFuture::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부터 |
- 상속된 멤버를 포함한 모든 멤버 목록
- WhenAnyResult는 Threading 클래스의 일부입니다.
공개 변수
상세 설명
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.