tmp/tmp1pnn7_t_/{from.md → to.md}
RENAMED
|
@@ -153,11 +153,11 @@ template <class InputIterator, class OutputIterator, class BinaryOperation>
|
|
| 153 |
|
| 154 |
*Effects:* For a non-empty range, the function creates an accumulator
|
| 155 |
`acc` whose type is `InputIterator`’s value type, initializes it with
|
| 156 |
`*first`, and assigns the result to `*result`. For every iterator `i` in
|
| 157 |
\[`first + 1`, `last`) in order, creates an object `val` whose type is
|
| 158 |
-
`InputIterator`’s value type, initializes it with
|
| 159 |
`val - acc` or `binary_op(val, acc)`, assigns the result to
|
| 160 |
`*(result + (i - first))`, and move assigns from `val` to `acc`.
|
| 161 |
|
| 162 |
*Requires:* `InputIterator`’s value type shall be `MoveAssignable`
|
| 163 |
(Table [[moveassignable]]) and shall be constructible from the type of
|
|
|
|
| 153 |
|
| 154 |
*Effects:* For a non-empty range, the function creates an accumulator
|
| 155 |
`acc` whose type is `InputIterator`’s value type, initializes it with
|
| 156 |
`*first`, and assigns the result to `*result`. For every iterator `i` in
|
| 157 |
\[`first + 1`, `last`) in order, creates an object `val` whose type is
|
| 158 |
+
`InputIterator`’s value type, initializes it with `*i`, computes
|
| 159 |
`val - acc` or `binary_op(val, acc)`, assigns the result to
|
| 160 |
`*(result + (i - first))`, and move assigns from `val` to `acc`.
|
| 161 |
|
| 162 |
*Requires:* `InputIterator`’s value type shall be `MoveAssignable`
|
| 163 |
(Table [[moveassignable]]) and shall be constructible from the type of
|