Skip to content

Commit 0169bcf

Browse files
Merge pull request #59 from jaredhoberock/issue-56
Fix typos reported by Alisdair
2 parents a336789 + 44682ed commit 0169bcf

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

algorithms.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ <h1>Header <code>&lt;experimental/algorithm&gt;</code> synopsis</h1>
127127

128128
// Exposition only: Suppress template argument deduction.
129129
template&lt;class T&gt; struct no_deduce { using type = T; };
130-
template&lt;class T&gt; struct no_dedu<ins>c</ins><del>d</del>e_t = typename no_deduce&lt;T&gt;::type;
130+
template&lt;class T&gt; using no_deduce_t = typename no_deduce&lt;T&gt;::type;
131131

132132
<cxx-ref insynopsis="" to="parallel.alg.reductions"></cxx-ref> Support for reductions
133133
template&lt;class T, class BinaryOperation&gt;
@@ -465,7 +465,7 @@ <h1>No vec</h1>
465465
auto no_vec(F&amp;&amp; f) noexcept -&gt; decltype(std::forward&lt;F&gt;(f)());</cxx-signature>
466466

467467
<cxx-effects>
468-
Evaluates <code>std::forward&gt;F&lt;(f)()</code>. When invoked within an element access function
468+
Evaluates <code>std::forward&lt;F&gt;(f)()</code>. When invoked within an element access function
469469
in a parallel algorithm using <code>vector_policy</code>, if two calls to <code>no_vec</code> are
470470
horizontally matched within a wavefront application of an element access function over input
471471
sequence S, then the execution of <code>f</code> in the application for one element in S is
@@ -502,6 +502,7 @@ <h1>No vec</h1>
502502
<h1>Ordered update class</h1>
503503

504504
<pre>
505+
template&lt;class T&gt;
505506
class ordered_update_t {
506507
T&amp; ref_; // exposition only
507508
public:

execution_policies.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ <h1>Vector execution policy</h1>
5050
class vector_policy{ <i>unspecified</i> };
5151
</pre>
5252

53-
<p>The class <code>vector_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. Additionally, such vectorization will result in an execution that respects the sequencing constraints of wavefront application ([parallel.alg.general.wavefront]). <cxx-note>The implementation thus makes stronger guarantees than for <code>unsequenced_policy</code>, for example.</cxx-note></p>
53+
<p>The class <code>vector_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. Additionally, such vectorization will result in an execution that respects the sequencing constraints of wavefront application (<a href="#parallel.alg.general.wavefront">[parallel.alg.general.wavefront]</a>). <cxx-note>The implementation thus makes stronger guarantees than for <code>unsequenced_policy</code>, for example.</cxx-note></p>
5454

55-
<p>The invocations of element access functions in parallel algorithms invoked with an execution policy of type <code>vector_policy</code> are permitted to execute in unordered fashion in the calling thread, unsequenced with respect to one another within the calling thread, subject to the sequencing constraints of wavefront application (<cxx-ref to="parallel.alg.general.wavefront"></cxx-ref>) for the last argument to <code>for_loop</code>, <code>for_loop_n</code>, <code>for_loop_strided</code>, or <code>for_loop_strided_n</code>.</p>
55+
<p>The invocations of element access functions in parallel algorithms invoked with an execution policy of type <code>vector_policy</code> are permitted to execute in unordered fashion in the calling thread, unsequenced with respect to one another within the calling thread, subject to the sequencing constraints of wavefront application (<a href="#parallel.alg.general.wavefront">[parallel.alg.general.wavefront]</a>) for the last argument to <code>for_loop</code>, <code>for_loop_n</code>, <code>for_loop_strided</code>, or <code>for_loop_strided_n</code>.</p>
5656

5757
<p>During the execution of a parallel algorithm with the <code>experimental::execution::vector_policy</code> policy, if the invocation of an element access function exits via an uncaught exception, <code>terminate()</code> will be called.</p>
5858

0 commit comments

Comments
 (0)