Return the sum of values in Range starting from Init.
Declared in <llvm/ADT/STLExtras.h>
template<
typename R,
typename E = /* implementation-defined */>
auto
sum_of(
R&& Range,
E Init = E{0});
The sum of values in Range starting from Init.
| Name | Description |
|---|---|
| Range | Range whose values are summed. |
| Init | Initial value for the sum (defaults to 0). |