Namespaces
Variants

std::future<T>:: future

From es.cppreference.net
Concurrency support library
Threads
(C++11)
(C++20)
this_thread namespace
(C++11)
(C++11)
Cooperative cancellation
Mutual exclusion
Generic lock management
Condition variables
(C++11)
Semaphores
Latches and Barriers
(C++20)
(C++20)
Futures
(C++11)
(C++11)
(C++11)
Safe reclamation
Hazard pointers
Atomic types
(C++11)
(C++20)
Initialization of atomic types
(C++11) (deprecated in C++20)
(C++11) (deprecated in C++20)
Memory ordering
(C++11) (deprecated in C++26)
Free functions for atomic operations
Free functions for atomic flags
future ( ) noexcept ;
(1) (desde C++11)
future ( future && other ) noexcept ;
(2) (desde C++11)
future ( const future & other ) = delete ;
(3) (desde C++11)

Construye un objeto std::future .

1) Constructor por defecto. Construye un std::future sin estado compartido. Después de la construcción, valid ( ) == false .
2) Constructor de movimiento. Construye un std::future con el estado compartido de other usando semántica de movimiento. Después de la construcción, other. valid ( ) == false .
3) std::future no es CopyConstructible .

Parámetros

otro - otro std::future del cual adquirir el estado compartido