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

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::execution::seq, std::execution::par, std::execution::par_unseq

From cppreference.com
< cpp‎ | algorithm

Defined in header `<execution>` |  |
inline constexpr std::execution::sequenced_policy seq { /* unspecified */ }; |  | (since C++17)
inline constexpr std::execution::parallel_policy par { /* unspecified */ }; |  | (since C++17)
inline constexpr std::execution::parallel_unsequenced_policy par_unseq { /* unspecified */ }; |  | (since C++17)

`std::execution::seq`, `std::execution::par` and `std::execution::par_unseq` are instances of the execution policy types std::execution::sequenced_policy, std::execution::parallel_policy and std::execution::parallel_unsequenced_policy respectively. They are used to specify the execution policy of parallel algorithms - i.e., the kinds of parallelism allowed.

Additional execution policies may be provided by a standard library implementation.

### [edit] See also

sequenced_policyparallel_policyparallel_unsequenced_policy (C++17)(C++17)(C++17) | execution policy types (class) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/algorithm/execution_policy_tag&oldid=90984"