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

Function product

source/core/StarAlgorithm.hpp:287–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285
286template <typename Container>
287typename Container::value_type product(Container const& cont) {
288 return fold1(cont, std::multiplies<typename Container::value_type>());
289}
290
291template <typename OutContainer, typename InContainer, typename Function>
292void transformInto(OutContainer& outContainer, InContainer&& inContainer, Function&& function) {

Callers

nothing calls this directly

Calls 1

fold1Function · 0.85

Tested by

no test coverage detected