TFuture
C++ æ¨æºã® std::promise / std::future / std::thread C++erã«ã¨ã£ã¦ã¯åºç¤çãªããããã #include <iostream> #include <future> int main() { using namespace std; promise< int > p; auto f = p.get_future(); auto t = thread( [ =, p = move(p) ] () mutable { p.set_v</future></iostream>â¦