|
15224 | 15224 | object of an execution policy type indicates the kinds of parallelism allowed
|
15225 | 15225 | in the execution of an algorithm and expresses the consequent requirements on
|
15226 | 15226 | the element access functions.
|
| 15227 | +Execution policy types are declared in header \libheaderref{execution}. |
15227 | 15228 | \begin{example}
|
15228 | 15229 | \begin{codeblock}
|
15229 | 15230 | using namespace std;
|
|
15249 | 15250 | parameters for efficient execution.
|
15250 | 15251 | \end{note}
|
15251 | 15252 |
|
15252 |
| -\rSec2[execution.syn]{Header \tcode{<execution>} synopsis} |
15253 |
| - |
15254 |
| -\indexheader{execution}% |
15255 |
| -\begin{codeblock} |
15256 |
| -namespace std { |
15257 |
| - // \ref{execpol.type}, execution policy type trait |
15258 |
| - template<class T> struct is_execution_policy; |
15259 |
| - template<class T> constexpr bool @\libglobal{is_execution_policy_v}@ = is_execution_policy<T>::value; |
15260 |
| -} |
15261 |
| - |
15262 |
| -namespace std::execution { |
15263 |
| - // \ref{execpol.seq}, sequenced execution policy |
15264 |
| - class sequenced_policy; |
15265 |
| - |
15266 |
| - // \ref{execpol.par}, parallel execution policy |
15267 |
| - class parallel_policy; |
15268 |
| - |
15269 |
| - // \ref{execpol.parunseq}, parallel and unsequenced execution policy |
15270 |
| - class parallel_unsequenced_policy; |
15271 |
| - |
15272 |
| - // \ref{execpol.unseq}, unsequenced execution policy |
15273 |
| - class unsequenced_policy; |
15274 |
| - |
15275 |
| - // \ref{execpol.objects}, execution policy objects |
15276 |
| - inline constexpr sequenced_policy seq{ @\unspec@ }; |
15277 |
| - inline constexpr parallel_policy par{ @\unspec@ }; |
15278 |
| - inline constexpr parallel_unsequenced_policy par_unseq{ @\unspec@ }; |
15279 |
| - inline constexpr unsequenced_policy unseq{ @\unspec@ }; |
15280 |
| -} |
15281 |
| -\end{codeblock} |
15282 |
| - |
15283 | 15253 | \rSec2[execpol.type]{Execution policy type trait}
|
15284 | 15254 |
|
15285 | 15255 | \indexlibraryglobal{is_execution_policy}%
|
|
15409 | 15379 |
|
15410 | 15380 | \begin{itemdescr}
|
15411 | 15381 | \pnum
|
15412 |
| -The header \libheader{execution} declares global objects associated with each type of execution policy. |
| 15382 | +The header \libheaderref{execution} declares global objects associated with each type of execution policy. |
15413 | 15383 | \end{itemdescr}
|
15414 | 15384 |
|
15415 | 15385 | \rSec1[charconv]{Primitive numeric conversions}
|
|
0 commit comments