@@ -695,7 +695,7 @@ <h1>Exclusive scan</h1>
695
695
</ cxx-complexity >
696
696
697
697
< 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
699
699
< code > exclusive_scan</ code > excludes the < code > i</ code > th input element from the < code > i</ code > th
700
700
sum. If < code > binary_op</ code > is not mathematically associative, the behavior of
701
701
< code > exclusive_scan</ code > may be non-deterministic.
@@ -719,21 +719,25 @@ <h1>Inclusive scan</h1>
719
719
</ cxx-returns >
720
720
721
721
< cxx-requires >
722
- The < code > operator+</ code > function associated with
723
- < code > iterator_traits<InputIterator>::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<InputIterator>::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 >
726
728
</ cxx-requires >
727
729
728
730
< 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 >
730
732
</ cxx-complexity >
731
733
732
734
< 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 >
737
741
</ cxx-notes >
738
742
</ cxx-function >
739
743
0 commit comments