Skip to content

Commit 302ec7a

Browse files
committed
Implement P0776R1's large deletions from Execution policies section
1 parent 5032941 commit 302ec7a

File tree

1 file changed

+39
-19
lines changed

1 file changed

+39
-19
lines changed

execution_policies.html

Lines changed: 39 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<cxx-clause id="parallel.execpol">
22
<h1>Execution policies</h1>
3-
<cxx-section id="parallel.execpol.general">
3+
<del><cxx-section id="parallel.execpol.general"></del>
4+
<del>
45
<h1>In general</h1>
56
<p>
67
This clause describes classes that are <dfn>execution policy</dfn> types. An object
@@ -44,6 +45,7 @@ <h1>In general</h1>
4445
may provide additional execution policies to those described in this
4546
Technical Specification as extensions.
4647
</cxx-note>
48+
</del>
4749
</cxx-section>
4850
<cxx-section id="parallel.execpol.synopsis">
4951
<h1>Header <code>&lt;experimental/execution<del>_policy</del>&gt;</code> synopsis</h1>
@@ -88,7 +90,8 @@ <h1>Header <code>&lt;experimental/execution<del>_policy</del>&gt;</code> synopsi
8890
<del>}</del>
8991
</pre>
9092
</cxx-section>
91-
<cxx-section id="parallel.execpol.type">
93+
<del><cxx-section id="parallel.execpol.type"></del>
94+
<del>
9295
<h1>Execution policy type trait</h1>
9396

9497
<pre>
@@ -107,9 +110,11 @@ <h1>Execution policy type trait</h1>
107110
</cxx-note>
108111

109112
<p>The behavior of a program that adds specializations for <code>is_execution_policy</code> is undefined.</p>
113+
</del>
110114
</cxx-section>
111115

112-
<cxx-section id="parallel.execpol.seq">
116+
<del><cxx-section id="parallel.execpol.seq"></del>
117+
<del>
113118
<h1>Sequential execution policy</h1>
114119

115120
<pre>
@@ -118,8 +123,10 @@ <h1>Sequential execution policy</h1>
118123

119124
<p>The class <code>sequential_execution_policy</code> is an execution policy type used as a unique type to disambiguate parallel algorithm overloading and require that a parallel algorithm's execution may not be parallelized.</p>
120125

126+
</del>
121127
</cxx-section>
122-
<cxx-section id="parallel.execpol.par">
128+
<del><cxx-section id="parallel.execpol.par"></del>
129+
<del>
123130
<h1>Parallel execution policy</h1>
124131

125132
<pre>
@@ -128,8 +135,10 @@ <h1>Parallel execution policy</h1>
128135

129136
<p>The class <code>parallel_execution_policy</code> is an execution policy type used as a unique type to disambiguate parallel algorithm overloading and indicate that a parallel algorithm's execution may be parallelized.</p>
130137

138+
</del>
131139
</cxx-section>
132-
<cxx-section id="parallel.execpol.parvec">
140+
<del><cxx-section id="parallel.execpol.parvec"></del>
141+
<del>
133142
<h1>Parallel+Vector execution policy</h1>
134143

135144
<pre>
@@ -138,6 +147,7 @@ <h1>Parallel+Vector execution policy</h1>
138147

139148
<p>The class <code>class parallel_vector_execution_policy</code> is an execution policy type used as a unique type to disambiguate parallel algorithm overloading and indicate that a parallel algorithm's execution may be vectorized and parallelized.</p>
140149

150+
</del>
141151
</cxx-section>
142152

143153
<cxx-section id="parallel.execpol.unseq">
@@ -173,7 +183,8 @@ <h1>Vector execution policy</h1>
173183

174184
</cxx-section>
175185

176-
<cxx-section id="parallel.execpol.dynamic">
186+
<del><cxx-section id="parallel.execpol.dynamic"></del>
187+
<del>
177188
<h1>Dynamic execution policy</h1>
178189

179190
<pre>
@@ -211,47 +222,56 @@ <h1>Dynamic execution policy</h1>
211222
<p>Objects of type <code>execution_policy</code> shall be constructible and assignable from objects of
212223
type <code>T</code> for which <code>is_execution_policy&lt;T&gt;::value</code> is <code>true</code>.</p>
213224

225+
</del>
214226
<cxx-section id="parallel.execpol.con">
215-
<h1><code>execution_policy</code> construct/assign</h1>
227+
<h1><del><code>execution_policy</code> construct/assign</del></h1>
216228

217229
<cxx-function>
218-
<cxx-signature>template&lt;class T&gt; execution_policy(const T&amp; exec);</cxx-signature>
230+
<del><cxx-signature>template&lt;class T&gt; execution_policy(const T&amp; exec);</cxx-signature></del>
219231

220-
<cxx-effects>Constructs an <code>execution_policy</code> object with a copy of <code>exec</code>'s state.</cxx-effects>
232+
<del><cxx-effects><del>Constructs an <code>execution_policy</code> object with a copy of <code>exec</code>'s state.</del></cxx-effects></del>
221233

234+
<del>
222235
<cxx-remarks>
236+
<del>
223237
This constructor shall not participate in overload resolution unless
224238
<code>is_execution_policy&lt;T&gt;::value</code> is <code>true</code>.
239+
</del>
225240
</cxx-remarks>
241+
</del>
226242
</cxx-function>
227243

228244
<cxx-function>
229-
<cxx-signature>template&lt;class T&gt; execution_policy&amp; operator=(const T&amp; exec);</cxx-signature>
245+
<del>
246+
<cxx-signature><del>template&lt;class T&gt; execution_policy&amp; operator=(const T&amp; exec);</del></cxx-signature>
230247

231-
<cxx-effects>Assigns a copy of <code>exec</code>'s state to <code>*this</code>.</cxx-effects>
248+
<cxx-effects><del>Assigns a copy of <code>exec</code>'s state to <code>*this</code>.</del></cxx-effects>
232249

233-
<cxx-returns><code>*this</code>.
250+
<cxx-returns><del><code>*this</del></code>.
251+
</del>
234252
</cxx-function>
235253
</cxx-section>
236254

237255
<cxx-section id="parallel.execpol.access">
238-
<h1><code>execution_policy</code> object access</h1>
256+
<h1><del><code>execution_policy</code> object access</del></h1>
239257

240258
<cxx-function>
241-
<cxx-signature>const type_info&amp; type() const noexcept;</cxx-signature>
259+
<del><cxx-signature><del>const type_info&amp; type() const noexcept;</del></cxx-signature></del>
242260

243-
<cxx-returns><code>typeid(T)</code>, such that <code>T</code> is the type of the execution policy object contained by <code>*this</code>.</cxx-returns>
261+
<del><cxx-returns><del><code>typeid(T)</code>, such that <code>T</code> is the type of the execution policy object contained by <code>*this</code>.</del></cxx-returns></del>
244262
</cxx-function>
245263

246264
<cxx-function>
247-
<cxx-signature>template&lt;class T&gt; T* get() noexcept;</cxx-signature>
248-
<cxx-signature>template&lt;class T&gt; const T* get() const noexcept;</cxx-signature>
265+
<del><cxx-signature><del>template&lt;class T&gt; T* get() noexcept;</del></cxx-signature></del>
266+
<del><cxx-signature><del>template&lt;class T&gt; const T* get() const noexcept;</del></cxx-signature></del>
249267

250-
<cxx-returns>If <code>target_type() == typeid(T)</code>, a pointer to the stored execution policy object; otherwise a null pointer.</cxx-returns>
268+
<del><cxx-returns><del>If <code>target_type() == typeid(T)</code>, a pointer to the stored execution policy object; otherwise a null pointer.</del></cxx-returns></del>
251269

270+
<del>
252271
<cxx-requires>
253-
<code>is_execution_policy&lt;T&gt;::value</code> is <code>true</code>.
272+
<del><code>is_execution_policy&lt;T&gt;::value</code> is <code>true</code>.</del>
254273
</cxx-requires>
274+
</del>
255275
</cxx-function>
256276

257277
</cxx-section>

0 commit comments

Comments
 (0)