Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Created October 6, 2017 11:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/fdaced63a00dec3a235481dfbaf92a10 to your computer and use it in GitHub Desktop.
Save deque-blog/fdaced63a00dec3a235481dfbaf92a10 to your computer and use it in GitHub Desktop.
std::vector<int> ints = {1, 2, 3};
for_each<int>(ints.begin(), ints.end(), [](int i) {
std::cout << i << '\n';
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment