llvm::sum_of

Returns the sum of all values in Range with Init initial value. The default initial value is 0.

Synopsis

Declared in <llvm/ADT/STLExtras.h>

template<
    typename R,
    typename E = /* implementation-defined */>
auto
sum_of(
    R&& Range,
    E Init = E{0});