WhenAnyResult Struct
template <typename T> struct QtFuture::WhenAnyResultQtFuture::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 |
- 상속된 멤버를 포함한 모든 멤버의 목록
- WhenAnyResult는 스레딩 클래스의 일부입니다.
공용 변수
상세 설명
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()도 참조하세요 .
© 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.