Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
template<typename Range, typename... Steps>
auto fold(Range const& rng, Steps... steps)
{
return std::accumulate(
rng.begin(), rng.end(),
std::make_tuple(steps()...),
par_steps(steps...));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment