• 1. 引入头文件使用std::future需要包含<future>头文件: #include <future>2. 创建std::future对象通常通过std::async函数来创建一个std::future对象,
    admin1天前
    60