Namespaces
Variants

std::future<T>:: future

From 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) (C++11 이후)
future ( future && other ) noexcept ;
(2) (C++11 이후)
future ( const future & other ) = delete ;
(3) (C++11 이후)

std::future 객체를 생성합니다.

1) 기본 생성자. 공유 상태가 없는 std::future 를 생성합니다. 생성 후, valid ( ) == false 입니다.
2) 이동 생성자. std::future other 의 공유 상태로 이동 의미론을 사용하여 생성합니다. 생성 후, other. valid ( ) == false .
3) std::future CopyConstructible 이 아닙니다.

매개변수

other - 공유 상태를 획득할 또 다른 std::future