Created
October 6, 2017 16:52
-
-
Save deque-blog/23aef41f87de65e3a854a90ffc25e8d9 to your computer and use it in GitHub Desktop.
This file contains 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
std::vector<int> ints = {1, 2, 3}; | |
accumulate(ints.begin(), ints.end(), 0, [](int res, int i) { | |
return res + i; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment