accumulate overloads
Declared in <llvm/ADT/STLExtras.h>
Accumulate the elements of Range starting from Init.
template<
typename R,
typename E>
auto
accumulate(
R&& Range,
E&& Init);
» more...
Accumulate the elements of Range with Op starting from Init.
template<
typename R,
typename E,
typename BinaryOp>
auto
accumulate(
R&& Range,
E&& Init,
BinaryOp&& Op);
» more...
The accumulated result.
| Name | Description |
|---|---|
| Range | Range whose elements are accumulated. |
| Init | Initial value for the accumulation. |
| Op | Binary operator applied during accumulation. |