IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

Detailed Description

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

This struct was introduced in Qt 6.3.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

  • Header: WhenAnyResult

  • Since: Qt 6.3

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS Core)

    target_link_libraries(mytarget PRIVATE Qt6::Core)

  • qmake: QT += core

  • Group: WhenAnyResult is part of thread

Detailed Description

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().

See Also

Member Variable Documentation

 

QFuture<T> WhenAnyResult::future

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

See Also

See also 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.

See Also

See also QtFuture::whenAny()

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+