std::execution::seq, std::execution::par, std::execution::par_unseq, std::execution::unseq
提供: cppreference.com
ヘッダ <execution> で定義
|
||
inline constexpr std::execution::sequenced_policy seq { /* unspecified */ }; |
(C++17以上) | |
inline constexpr std::execution::parallel_policy par { /* unspecified */ }; |
(C++17以上) | |
inline constexpr std::execution::parallel_unsequenced_policy par_unseq { /* unspecified */ }; |
(C++17以上) | |
inline constexpr std::execution::unsequenced_policy unseq { /* unspecified */ }; |
(C++20以上) | |
std::execution::seq
、 std::execution::par
、 std::execution::par_unseq
および std::execution::unseq
はそれぞれ実行ポリシー型 std::execution::sequenced_policy、 std::execution::parallel_policy、 std::execution::parallel_unsequenced_policy および std::execution::unsequenced_policy のインスタンスです。 これらは並列アルゴリズムの実行ポリシー、すなわち許される並列化の種類を指定するために使用されます。
標準ライブラリの実装によって追加の実行ポリシーが提供されるかもしれません (std::parallel::cuda
や std::parallel::opencl
などが将来追加されるかもしれません)。
[編集] 関連項目
(C++17)(C++17)(C++17)(C++20) |
実行ポリシーの型 (クラス) |