Skip to content

Commit 487c83c

Browse files
committed
Flatten outstanding diffs and replace namespace v1 with v2
1 parent 927a736 commit 487c83c

File tree

4 files changed

+18
-23
lines changed

4 files changed

+18
-23
lines changed

algorithms.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ <h1>Header <code>&lt;experimental/algorithm&gt;</code> synopsis</h1>
365365
namespace std {
366366
namespace experimental {
367367
namespace parallel {
368-
inline namespace v1 {
368+
inline namespace <ins>v2</ins><del>v1</del> {
369369
template&lt;class ExecutionPolicy,
370370
class InputIterator, class Function&gt;
371371
void for_each(ExecutionPolicy&amp;&amp; exec,
@@ -499,7 +499,7 @@ <h1>Header <code>&lt;experimental/numeric&gt;</code> synopsis</h1>
499499
namespace std {
500500
namespace experimental {
501501
namespace parallel {
502-
inline namespace v1 {
502+
inline namespace <ins>v2</ins><del>v1</del> {
503503
template&lt;class InputIterator&gt;
504504
typename iterator_traits&lt;InputIterator&gt;::value_type
505505
reduce(InputIterator first, InputIterator last);

exceptions.html

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ <h1>Exception reporting behavior</h1>
99
</p>
1010
<p>
1111
During the execution of a standard parallel algorithm, if the invocation of an element access function
12-
<ins>exits via</ins><del>terminates with</del> an uncaught exception, the behavior of the program is determined by the type of
12+
exits via an uncaught exception, the behavior of the program is determined by the type of
1313
execution policy used to invoke the algorithm:
1414

1515
<ul>
@@ -19,30 +19,27 @@ <h1>Exception reporting behavior</h1>
1919
</li>
2020
<li>
2121
If the execution policy object is of type <code>sequential_execution_policy</code> or
22-
<code>parallel_execution_policy</code>, the execution of the algorithm <ins>exits via</ins><del>terminates with</del> an
23-
<del><code>exception_list</code></del> exception. <ins>The exception shall be an <code>exception_list</code> containing all</ins><del>All</del> uncaught exceptions thrown during
24-
the invocations of element access functions<ins>, or optionally the uncaught exception if there was only one</ins><del>shall be contained in the
25-
<code>exception_list</code></del>.<pre>
22+
<code>parallel_execution_policy</code>, the execution of the algorithm exits via an
23+
exception. The exception shall be an <code>exception_list</code> containing all uncaught exceptions thrown during
24+
the invocations of element access functions, or optionally the uncaught exception if there was only one.<pre>
2625
</pre>
2726

2827
<cxx-note>
29-
For example, <del>the number of invocations of the user-provided function object in
30-
<code>for_each</code> is unspecified. W</del><ins>w</ins>hen <code>for_each</code> is executed sequentially,
31-
<ins>if an invocation of the user-provided function object throws an exception, <code>for_each</code> can exit via the uncaught exception, or throw an <code>exception_list</code> containing the original exception.
32-
<del>only one exception will be contained in the <code>exception_list</code> object.</del>
28+
For example, when <code>for_each</code> is executed sequentially,
29+
if an invocation of the user-provided function object throws an exception, <code>for_each</code> can exit via the uncaught exception, or throw an <code>exception_list</code> containing the original exception.
3330
</cxx-note><pre>
3431
</pre>
3532

3633
<cxx-note>
3734
These guarantees imply that, unless the algorithm has failed to allocate memory and
38-
<ins>exits via</ins><del>terminated with</del> <code>std::bad_alloc</code>, all exceptions thrown during the execution of
35+
exits via <code>std::bad_alloc</code>, all exceptions thrown during the execution of
3936
the algorithm are communicated to the caller. It is unspecified whether an algorithm implementation will "forge ahead" after
4037
encountering and capturing a user exception.
4138
</cxx-note><pre>
4239
</pre>
4340
<cxx-note>
44-
The algorithm may <ins>exit via</ins><del>terminate with</del> the <code>std::bad_alloc</code> exception even if one or more
45-
user-provided function objects have <ins>exited via</ins><del>terminated with</del> an exception. For example, this can happen when an algorithm fails to allocate memory while
41+
The algorithm may exit via the <code>std::bad_alloc</code> exception even if one or more
42+
user-provided function objects have exited via an exception. For example, this can happen when an algorithm fails to allocate memory while
4643
creating or adding elements to the <code>exception_list</code> object.
4744
</cxx-note>
4845
</li>
@@ -60,7 +57,7 @@ <h1>Header <code>&lt;experimental/exception_list&gt;</code> synopsis</h1>
6057
namespace std {
6158
namespace experimental {
6259
namespace parallel {
63-
inline namespace v1 {
60+
inline namespace <ins>v2</ins><del>v1</del> {
6461

6562
class exception_list : public exception
6663
{

execution_policies.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ <h1>Header <code>&lt;experimental/execution_policy&gt;</code> synopsis</h1>
5252
namespace std {
5353
namespace experimental {
5454
namespace parallel {
55-
inline namespace v1 {
55+
inline namespace <ins>v2</ins><del>v1</del> {
5656
<cxx-ref insynopsis="" to="parallel.execpol.type"></cxx-ref>
5757
template&lt;class T&gt; struct is_execution_policy;
5858
template&lt;class T&gt; constexpr bool is_execution_policy_v = is_execution_policy&lt;T&gt;::value;

general.html

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ <h1>Namespaces and headers</h1>
5252
experimental and not part of the C++ Standard Library, they should not be
5353
declared directly within namespace <code>std</code>. Unless otherwise specified, all
5454
components described in this Technical Specification are declared in namespace
55-
<code>std::experimental::parallel::v1</code>.</p>
55+
<code>std::experimental::parallel::<ins>v2</ins><del>v1</del></code>.</p>
5656

5757
<cxx-note>
5858
Once standardized, the components described by this Technical Specification are expected to be promoted to namespace <code>std</code>.
5959
</cxx-note>
6060

6161
<p>Unless otherwise specified, references to such entities described in this
6262
Technical Specification are assumed to be qualified with
63-
<code>std::experimental::parallel::v1</code>, and references to entities described in the C++
63+
<code>std::experimental::parallel::<ins>v2</ins><del>v1</del></code>, and references to entities described in the C++
6464
Standard Library are assumed to be qualified with <code>std::</code>.</p>
6565

6666
<p>Extensions that are expected to eventually be added to an existing header
@@ -77,7 +77,7 @@ <h1>Terms and definitions</h1>
7777

7878
<p>For the purposes of this document, the terms and definitions given in the C++ Standard and the following apply.</p>
7979

80-
<p>A <dfn>parallel algorithm</dfn> is a function template described by this Technical Specification declared in namespace <code>std::experimental::parallel::v1</code> with a formal template parameter named <code>ExecutionPolicy</code>.</p>
80+
<p>A <dfn>parallel algorithm</dfn> is a function template described by this Technical Specification declared in namespace <code>std::experimental::parallel::<ins>v2</ins><del>v1</del></code> with a formal template parameter named <code>ExecutionPolicy</code>.</p>
8181

8282
<p>
8383
Parallel algorithms access objects indirectly accessible via their arguments by invoking the following functions:
@@ -95,13 +95,13 @@ <h1>Terms and definitions</h1>
9595
User-provided function objects to be applied during the execution of the algorithm, if required by the specification.
9696
</li>
9797

98-
<ins><li>
98+
<li>
9999
Operations on those function objects required by the specification.
100100

101101
<cxx-note>
102102
See clause 25.1 of <em>C++ Standard Algorithms Library</em>.
103103
</cxx-note>
104-
</li></ins>
104+
</li>
105105
</ul>
106106

107107
These functions are herein called <em>element access functions</em>.
@@ -127,7 +127,6 @@ <h1>Terms and definitions</h1>
127127
</cxx-section>
128128

129129
<cxx-section id="parallel.general.features">
130-
<ins>
131130
<h1>Feature-testing recommendations</h1>
132131
<p>An implementation that provides support for this Technical Specification shall define the feature test macro(s) in Table 1.</p>
133132

@@ -152,7 +151,6 @@ <h1>Feature-testing recommendations</h1>
152151
</tr>
153152
</thead>
154153
</table>
155-
</ins>
156154
</cxx-section>
157155
</cxx-clause>
158156

0 commit comments

Comments
 (0)