std::experimental::parallel::seq, std::experimental::parallel::par, std::experimental::parallel::par_vec
From cppreference.com
< cpp | experimental
C++
Experimental
| Technical Specification | ||||
| Filesystem library (filesystem TS) | ||||
| Library fundamentals (library fundamentals TS) | ||||
| Library fundamentals 2 (library fundamentals TS v2) | ||||
| Library fundamentals 3 (library fundamentals TS v3) | ||||
| Extensions for parallelism (parallelism TS) | ||||
| Extensions for parallelism 2 (parallelism TS v2) | ||||
| Extensions for concurrency (concurrency TS) | ||||
| Extensions for concurrency 2 (concurrency TS v2) | ||||
| Concepts (concepts TS) | ||||
| Ranges (ranges TS) | ||||
| Reflection (reflection TS) | ||||
| Mathematical special functions (special functions TR) | ||||
| Experimental Non-TS | ||||
| Pattern Matching | ||||
| Linear Algebra | ||||
| std::execution | ||||
| Contracts | ||||
| 2D Graphics |
Extensions for parallelism
| Execution policies | ||||
parallel::seqparallel::parparallel::par_vec | ||||
| Parallel algorithms | ||||
| Parallel exceptions | ||||
| Parallelized version of existing algorithms | ||||
| New algorithms | ||||
| Defined in header <experimental/execution_policy>
|
||
| constexpr sequential_execution_policy seq{}; |
(parallelism TS) | |
| constexpr parallel_execution_policy par{}; |
(parallelism TS) | |
| constexpr parallel_vector_execution_policy par_vec{}; |
(parallelism TS) | |
seq, par and par_vec are instances of the execution policy types sequential_execution_policy, parallel_execution_policy and parallel_vector_execution_policy respectively. They are used to specify the execution policy of parallel algorithms - i.e., the kinds of parallelism allowed.