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