gpt4 book ai didi

c++ - 关于 boost::unique_future 的文档

转载 作者:行者123 更新时间:2023-11-28 07:27:20 30 4
gpt4 key购买 nike

在代码中运行这样的构造boost::unique_future,但找不到关于它是什么的太多信息。请帮助提供相关链接或解释

最佳答案

unique_future is very much like unique_ptr: it represents exclusive ownership of the value. Ownership of a (future) value can be moved between unique_future instances, but no two unique_future instances can refer to the same asynchronous value. Once the value is ready for retrieval, it is moved out of the internal storage buffer: this allows for use with move-only types such as std::ifstream. source

关于c++ - 关于 boost::unique_future 的文档,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18530014/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com