Namespaces
Variants

std::future<T>:: operator=

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

다른 future 객체의 내용을 할당합니다.

1) 공유 상태를 해제하고 other 의 내용을 * this 로 이동 대입합니다. 대입 후에는 other. valid ( ) == false 가 되며, this - > valid ( ) 는 대입 전 other. valid ( ) 가 반환하던 값과 동일한 값을 반환합니다.
2) std::future CopyAssignable 이 아닙니다.

매개변수

other - std::future 상태를 * this 로 전송할

반환값

* this