Last active
January 9, 2017 19:18
-
-
Save deque-blog/7a0804cb75e5a596af6d3adb0f76f1b6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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