tmp/tmp4jen4a7j/{from.md → to.md}
RENAMED
|
@@ -74,11 +74,11 @@ are convertible to `T`.
|
|
| 74 |
- `T` meets the *Cpp17MoveConstructible* ([[cpp17.moveconstructible]])
|
| 75 |
requirements.
|
| 76 |
- `binary_op` neither invalidates iterators or subranges, nor modifies
|
| 77 |
elements in the range \[`first`, `last`\].
|
| 78 |
|
| 79 |
-
*Returns:* *GENERALIZED_SUM*(binary_op, init, \*i,
|
| 80 |
\[`first`, `last`).
|
| 81 |
|
| 82 |
*Complexity:* 𝑂(`last - first`) applications of `binary_op`.
|
| 83 |
|
| 84 |
[*Note 1*: The difference between `reduce` and `accumulate` is that
|
|
|
|
| 74 |
- `T` meets the *Cpp17MoveConstructible* ([[cpp17.moveconstructible]])
|
| 75 |
requirements.
|
| 76 |
- `binary_op` neither invalidates iterators or subranges, nor modifies
|
| 77 |
elements in the range \[`first`, `last`\].
|
| 78 |
|
| 79 |
+
*Returns:* *GENERALIZED_SUM*(binary_op, init, \*i, …) for every `i` in
|
| 80 |
\[`first`, `last`).
|
| 81 |
|
| 82 |
*Complexity:* 𝑂(`last - first`) applications of `binary_op`.
|
| 83 |
|
| 84 |
[*Note 1*: The difference between `reduce` and `accumulate` is that
|