boost::future有一个成员函数:boost::future::then,而std::future没有std::future::then.
boost::future
boost::future::then
std::future
std::future::then
这篇精彩的文章展示了它的实用性std::future::then.
为什么std::future::thenC++ 17中没有?
这只是一种疏忽,还是因为背后的其他理由?
c++ standards multithreading asynchronous c++17
我是一名 C++ 程序员,最近尝试学习std::future和。std::promise当我随机搜索一些关于future/promise的信息时,我发现了一些关于javascript中的future/promise的讨论then以及javascript中的promise有功能。在c++中,虽然现在std::future还没有then这个函数,但是一些提案已经提到了它。那么,有两个问题:
std::promise
then
javascript c++ functional-programming
c++ ×2
asynchronous ×1
c++17 ×1
functional-programming ×1
javascript ×1
multithreading ×1
standards ×1