tmp/tmpdkv5e76l/{from.md → to.md}
RENAMED
|
@@ -14,11 +14,11 @@ template <class InputIterator, class OutputIterator, class BinaryOperation>
|
|
| 14 |
|
| 15 |
*Effects:* For a non-empty range, the function creates an accumulator
|
| 16 |
`acc` whose type is `InputIterator`’s value type, initializes it with
|
| 17 |
`*first`, and assigns the result to `*result`. For every iterator `i` in
|
| 18 |
\[`first + 1`, `last`) in order, creates an object `val` whose type is
|
| 19 |
-
`InputIterator`’s value type, initializes it with
|
| 20 |
`val - acc` or `binary_op(val, acc)`, assigns the result to
|
| 21 |
`*(result + (i - first))`, and move assigns from `val` to `acc`.
|
| 22 |
|
| 23 |
*Requires:* `InputIterator`’s value type shall be `MoveAssignable`
|
| 24 |
(Table [[moveassignable]]) and shall be constructible from the type of
|
|
|
|
| 14 |
|
| 15 |
*Effects:* For a non-empty range, the function creates an accumulator
|
| 16 |
`acc` whose type is `InputIterator`’s value type, initializes it with
|
| 17 |
`*first`, and assigns the result to `*result`. For every iterator `i` in
|
| 18 |
\[`first + 1`, `last`) in order, creates an object `val` whose type is
|
| 19 |
+
`InputIterator`’s value type, initializes it with `*i`, computes
|
| 20 |
`val - acc` or `binary_op(val, acc)`, assigns the result to
|
| 21 |
`*(result + (i - first))`, and move assigns from `val` to `acc`.
|
| 22 |
|
| 23 |
*Requires:* `InputIterator`’s value type shall be `MoveAssignable`
|
| 24 |
(Table [[moveassignable]]) and shall be constructible from the type of
|