MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / sum

Function sum

source/core/StarAlgorithm.hpp:282–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280
281template <typename Container>
282typename Container::value_type sum(Container const& cont) {
283 return fold1(cont, std::plus<typename Container::value_type>());
284}
285
286template <typename Container>
287typename Container::value_type product(Container const& cont) {

Callers 1

operator()Method · 0.85

Calls 1

fold1Function · 0.85

Tested by

no test coverage detected