📅  最后修改于: 2022-03-11 14:44:57.329000             🧑  作者: Mango
#include // multiplies
#include // accumulate
// ...
std::vector v {2,3,4};
int result = std::accumulate(v.begin(), v.end(), 1, std::multiplies());