◐ Shell
clean mode source ↗

std::execution::seq, std::execution::par, std::execution::par_unseq, std::execution::unseq - cppreference.com

提供: cppreference.com

<tbody> </tbody>

ヘッダ <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::seqstd::execution::parstd::execution::par_unseq および std::execution::unseq はそれぞれ実行ポリシー型 std::execution::sequenced_policystd::execution::parallel_policystd::execution::parallel_unsequenced_policy および std::execution::unsequenced_policy のインスタンスです。 これらは並列アルゴリズムの実行ポリシー、すなわち許される並列化の種類を指定するために使用されます。

標準ライブラリの実装によって追加の実行ポリシーが提供されるかもしれません (std::parallel::cudastd::parallel::opencl などが将来追加されるかもしれません)。

関連項目