Skip to content

Commit f70a05d

Browse files
committed
[{ex,in}clusive.scan] Reflow and use codeblocks
In pursuit of #693.
1 parent a849481 commit f70a05d

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

source/numerics.tex

+9-4
Original file line numberDiff line numberDiff line change
@@ -9125,7 +9125,8 @@
91259125
\pnum
91269126
\effects Equivalent to:
91279127
\begin{codeblock}
9128-
return exclusive_scan(std::forward<ExecutionPolicy>(exec), first, last, result, init, plus<>());
9128+
return exclusive_scan(std::forward<ExecutionPolicy>(exec),
9129+
first, last, result, init, plus<>());
91299130
\end{codeblock}
91309131
\end{itemdescr}
91319132

@@ -9136,7 +9137,8 @@
91369137
OutputIterator exclusive_scan(InputIterator first, InputIterator last,
91379138
OutputIterator result,
91389139
T init, BinaryOperation binary_op);
9139-
template<class ExecutionPolicy, class InputIterator, class OutputIterator, class T, class BinaryOperation>
9140+
template<class ExecutionPolicy,
9141+
class InputIterator, class OutputIterator, class T, class BinaryOperation>
91409142
OutputIterator exclusive_scan(ExecutionPolicy&& exec,
91419143
InputIterator first, InputIterator last,
91429144
OutputIterator result,
@@ -9153,7 +9155,9 @@
91539155
\pnum
91549156
\effects
91559157
Assigns through each iterator \tcode{i} in \range{result}{result + (last - first)} the value of
9156-
\tcode{\textit{GENERALIZED_NONCOMMUTATIVE_SUM}(binary_op, init, *j, ...)}
9158+
\begin{codeblock}
9159+
@\placeholder{GENERALIZED_NONCOMMUTATIVE_SUM}@(binary_op, init, *j, ...)
9160+
\end{codeblock}
91579161
for every \tcode{j} in \range{first}{first + (i - result)}.
91589162

91599163
\pnum
@@ -9226,7 +9230,8 @@
92269230
OutputIterator inclusive_scan(InputIterator first, InputIterator last,
92279231
OutputIterator result,
92289232
BinaryOperation binary_op, T init);
9229-
template<class ExecutionPolicy, class InputIterator, class OutputIterator, class BinaryOperation, class T>
9233+
template<class ExecutionPolicy,
9234+
class InputIterator, class OutputIterator, class BinaryOperation, class T>
92309235
OutputIterator inclusive_scan(ExecutionPolicy&& exec,
92319236
InputIterator first, InputIterator last,
92329237
OutputIterator result,

0 commit comments

Comments
 (0)