Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
将代码运行到这样的构造boost::unique_future中,但找不到太多关于那是什么的信息。请帮助提供相关链接或解释
unique_future 与 unique_ptr 非常相似:它表示对值的独占所有权。(未来)值的所有权可以在 unique_future 实例之间移动,但没有两个 unique_future 实例可以引用相同的异步值。一旦值准备好进行检索,它就会从内部存储缓冲区中移出:这允许与诸如 std::ifstream 之类的仅移动类型一起使用。 资源