Skip to content

Commit 9ee15e8

Browse files
committed
Strike out --primary-- difference in exclusive_scan's notes clause
1 parent bcce22b commit 9ee15e8

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

algorithms.html

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ <h1>Exclusive scan</h1>
695695
</cxx-complexity>
696696

697697
<cxx-notes>
698-
The primary difference between <code>exclusive_scan</code> and <code>inclusive_scan</code> is that
698+
The <del2>primary</del2> difference between <code>exclusive_scan</code> and <code>inclusive_scan</code> is that
699699
<code>exclusive_scan</code> excludes the <code>i</code>th input element from the <code>i</code>th
700700
sum. If <code>binary_op</code> is not mathematically associative, the behavior of
701701
<code>exclusive_scan</code> may be non-deterministic.
@@ -719,21 +719,25 @@ <h1>Inclusive scan</h1>
719719
</cxx-returns>
720720

721721
<cxx-requires>
722-
The <code>operator+</code> function associated with
723-
<code>iterator_traits&lt;InputIterator&gt;::value_type</code> shall not invalidate iterators or
724-
subranges, nor modify elements in the ranges <code>[first,last)</code> or
725-
<code>[result,result + (last - first))</code>.
722+
<del2>
723+
The <code>operator+</code> function associated with
724+
<code>iterator_traits&lt;InputIterator&gt;::value_type</code> shall not invalidate iterators or
725+
subranges, nor modify elements in the ranges <code>[first,last)</code> or
726+
<code>[result,result + (last - first))</code>.
727+
</del2>
726728
</cxx-requires>
727729

728730
<cxx-complexity>
729-
O(<code>last - first</code>) applications of <code>operator+</code>.
731+
<del2>O(<code>last - first</code>) applications of <code>operator+</code>.</del2>
730732
</cxx-complexity>
731733

732734
<cxx-notes>
733-
The <del2>primary</del2> difference between <code>exclusive_scan</code> and <code>inclusive_scan</code> is that
734-
<code>exclusive_scan</code> excludes the <code>i</code>th input element from the <code>i</code>th sum.
735-
If the <code>operator+</code> function is not mathematically associative, the behavior of
736-
<code>inclusive_scan</code> may be non-deterministic.
735+
<del2>
736+
The primary difference between <code>exclusive_scan</code> and <code>inclusive_scan</code> is that
737+
<code>exclusive_scan</code> excludes the <code>i</code>th input element from the <code>i</code>th sum.
738+
If the <code>operator+</code> function is not mathematically associative, the behavior of
739+
<code>inclusive_scan</code> may be non-deterministic.
740+
</del2>
737741
</cxx-notes>
738742
</cxx-function>
739743

0 commit comments

Comments
 (0)