Skip to content

Commit bc023c2

Browse files
committed
Swap the order of init & binary_op in inclusive_scan's fully-general form.
1 parent ad0e715 commit bc023c2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

algorithms.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -543,11 +543,11 @@ <h1>Header <code>&lt;experimental/numeric&gt;</code><ins2> synopsis</ins2></h1>
543543
OutputIterator result,
544544
BinaryOperation binary_op);
545545
template&lt;class InputIterator, class OutputIterator,
546-
class T, class BinaryOperation&gt;
546+
<del2>class T, </del2>class BinaryOperation<ins2>, class T</ins2>&gt;
547547
OutputIterator
548548
inclusive_scan(InputIterator first, InputIterator last,
549549
OutputIterator result,
550-
T init, BinaryOperation binary_op);
550+
<del2>T init, </del2>BinaryOperation binary_op<ins2>, T init</ins2>);
551551
<ins2>}</ins2>
552552
}
553553
}
@@ -787,11 +787,11 @@ <h1>Inclusive scan</h1>
787787
BinaryOperation binary_op);
788788

789789
template&lt;class InputIterator, class OutputIterator,
790-
class T, class BinaryOperation&gt;
790+
<del2>class T, </del2>class BinaryOperation<ins2>, class T</ins2>&gt;
791791
OutputIterator
792792
inclusive_scan(InputIterator first, InputIterator last,
793793
OutputIterator result,
794-
T init, BinaryOperation binary_op);
794+
<del2>T init, </del2>BinaryOperation binary_op<ins2>, T init</ins2>);
795795
</cxx-signature>
796796

797797
<cxx-effects>

0 commit comments

Comments
 (0)