Skip to content

Commit 714933b

Browse files
committed
Merge pull request #15 from jaredhoberock/master
Fix inclusive_scan's general signature & eliminate innermost namespace
2 parents c3f67ac + 4de4683 commit 714933b

File tree

5 files changed

+329
-249
lines changed

5 files changed

+329
-249
lines changed

algorithms.html

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,6 @@ <h1>Header <code>&lt;experimental/algorithm&gt;</code> synopsis</h1>
362362
namespace std {
363363
namespace experimental {
364364
<ins2>inline</ins2> namespace parallel<ins2>_v1</ins2> {
365-
<ins2>namespace parallel {</ins2>
366365
template&lt;class ExecutionPolicy,
367366
class InputIterator, class Function&gt;
368367
void for_each(ExecutionPolicy&amp;&amp; exec,
@@ -371,7 +370,6 @@ <h1>Header <code>&lt;experimental/algorithm&gt;</code> synopsis</h1>
371370
template&lt;class InputIterator, class Size, class Function&gt;
372371
InputIterator for_each_n(InputIterator first, Size n,
373372
Function f);
374-
<ins2>}</ins2>
375373
}
376374
}
377375
}
@@ -503,7 +501,6 @@ <h1>Header <code>&lt;experimental/numeric&gt;</code><ins2> synopsis</ins2></h1>
503501
namespace std {
504502
namespace experimental {
505503
<ins2>inline</ins2> namespace parallel<ins2>_v1</ins2> {
506-
<ins2>namespace parallel {</ins2>
507504
template&lt;class InputIterator&gt;
508505
typename iterator_traits&lt;InputIterator&gt;::value_type
509506
reduce(InputIterator first, InputIterator last);
@@ -543,12 +540,11 @@ <h1>Header <code>&lt;experimental/numeric&gt;</code><ins2> synopsis</ins2></h1>
543540
OutputIterator result,
544541
BinaryOperation binary_op);
545542
template&lt;class InputIterator, class OutputIterator,
546-
class T, class BinaryOperation&gt;
543+
<del2>class T, </del2>class BinaryOperation<ins2>, class T</ins2>&gt;
547544
OutputIterator
548545
inclusive_scan(InputIterator first, InputIterator last,
549546
OutputIterator result,
550-
T init, BinaryOperation binary_op);
551-
<ins2>}</ins2>
547+
<del2>T init, </del2>BinaryOperation binary_op<ins2>, T init</ins2>);
552548
}
553549
}
554550
}
@@ -787,11 +783,11 @@ <h1>Inclusive scan</h1>
787783
BinaryOperation binary_op);
788784

789785
template&lt;class InputIterator, class OutputIterator,
790-
class T, class BinaryOperation&gt;
786+
<del2>class T, </del2>class BinaryOperation<ins2>, class T</ins2>&gt;
791787
OutputIterator
792788
inclusive_scan(InputIterator first, InputIterator last,
793789
OutputIterator result,
794-
T init, BinaryOperation binary_op);
790+
<del2>T init, </del2>BinaryOperation binary_op<ins2>, T init</ins2>);
795791
</cxx-signature>
796792

797793
<cxx-effects>

exceptions.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ <h1>Header <code>&lt;experimental/exception_list&gt;</code> synopsis</h1>
5959
namespace std {
6060
namespace experimental {
6161
<ins2>inline</ins2> namespace parallel<ins2>_v1</ins2> {
62-
<ins2>namespace parallel {</ins2>
6362

6463
class exception_list : public exception
6564
{
@@ -85,7 +84,6 @@ <h1>Header <code>&lt;experimental/exception_list&gt;</code> synopsis</h1>
8584
std::list&lt;exception_ptr&gt; exceptions_; // exposition only
8685
</del2>
8786
};
88-
<ins2>}</ins2>
8987
}
9088
}
9189
}

execution_policies.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ <h1>Header <code>&lt;experimental/execution_policy&gt;</code> synopsis</h1>
6161
namespace std {
6262
namespace experimental {
6363
<ins2>inline</ins2> namespace parallel<ins2>_v1</ins2> {
64-
<ins2>namespace parallel {</ins2>
6564
<cxx-ref insynopsis="" to="parallel.execpol.type"></cxx-ref>
6665
template&lt;class T&gt; struct is_execution_policy;
6766
<ins2>template&lt;class T&gt; constexpr bool is_execution_policy_v = is_execution_policy&lt;T&gt;::value;</ins2>
@@ -77,7 +76,6 @@ <h1>Header <code>&lt;experimental/execution_policy&gt;</code> synopsis</h1>
7776

7877
<cxx-ref insynopsis="" to="parallel.execpol.dynamic"></cxx-ref>
7978
class execution_policy;
80-
<ins2>}</ins2>
8179
}
8280
}
8381
}

0 commit comments

Comments
 (0)