我想尝试C++ 17的并行STL。但是,我在libc++中找不到experimental/execution_policy。我该如何尝试?

我正在尝试http://en.cppreference.com/w/cpp/experimental/reduce,它说我应该包括这些文件,但是我找不到执行策略。

#include <experimental/execution_policy>

安装libc++(遵循http://libcxx.llvm.org/docs/BuildingLibcxx.html)后,我尝试了以下命令,但徒劳无功。
$ clang++-3.5 -std=c++1z test.cpp -lc++experimental
test.cpp:5:10: fatal error: 'experimental/execution_policy' file not found
#include <experimental/execution_policy>
         ^
1 error generated.

这还没有实现吗?

最佳答案



那是正确的。尚未在libc++中实现并行化TS(驻留在<experimental/xxx>中)或并行化算法(尚未最终发布)在C++ 1z标准中。

10-04 20:23