|
15214 | 15214 | object of an execution policy type indicates the kinds of parallelism allowed
|
15215 | 15215 | in the execution of an algorithm and expresses the consequent requirements on
|
15216 | 15216 | the element access functions.
|
| 15217 | +Execution policy types are declared in header \libheaderref{execution}. |
15217 | 15218 | \begin{example}
|
15218 | 15219 | \begin{codeblock}
|
15219 | 15220 | using namespace std;
|
|
15239 | 15240 | parameters for efficient execution.
|
15240 | 15241 | \end{note}
|
15241 | 15242 |
|
15242 |
| -\rSec2[execution.syn]{Header \tcode{<execution>} synopsis} |
15243 |
| - |
15244 |
| -\indexheader{execution}% |
15245 |
| -\begin{codeblock} |
15246 |
| -namespace std { |
15247 |
| - // \ref{execpol.type}, execution policy type trait |
15248 |
| - template<class T> struct is_execution_policy; |
15249 |
| - template<class T> constexpr bool @\libglobal{is_execution_policy_v}@ = is_execution_policy<T>::value; |
15250 |
| -} |
15251 |
| - |
15252 |
| -namespace std::execution { |
15253 |
| - // \ref{execpol.seq}, sequenced execution policy |
15254 |
| - class sequenced_policy; |
15255 |
| - |
15256 |
| - // \ref{execpol.par}, parallel execution policy |
15257 |
| - class parallel_policy; |
15258 |
| - |
15259 |
| - // \ref{execpol.parunseq}, parallel and unsequenced execution policy |
15260 |
| - class parallel_unsequenced_policy; |
15261 |
| - |
15262 |
| - // \ref{execpol.unseq}, unsequenced execution policy |
15263 |
| - class unsequenced_policy; |
15264 |
| - |
15265 |
| - // \ref{execpol.objects}, execution policy objects |
15266 |
| - inline constexpr sequenced_policy seq{ @\unspec@ }; |
15267 |
| - inline constexpr parallel_policy par{ @\unspec@ }; |
15268 |
| - inline constexpr parallel_unsequenced_policy par_unseq{ @\unspec@ }; |
15269 |
| - inline constexpr unsequenced_policy unseq{ @\unspec@ }; |
15270 |
| -} |
15271 |
| -\end{codeblock} |
15272 |
| - |
15273 | 15243 | \rSec2[execpol.type]{Execution policy type trait}
|
15274 | 15244 |
|
15275 | 15245 | \indexlibraryglobal{is_execution_policy}%
|
|
15399 | 15369 |
|
15400 | 15370 | \begin{itemdescr}
|
15401 | 15371 | \pnum
|
15402 |
| -The header \libheader{execution} declares global objects associated with each type of execution policy. |
| 15372 | +The header \libheaderref{execution} declares global objects associated with each type of execution policy. |
15403 | 15373 | \end{itemdescr}
|
15404 | 15374 |
|
15405 | 15375 | \rSec1[charconv]{Primitive numeric conversions}
|
|
0 commit comments