Skip to content

Instantly share code, notes, and snippets.

@fabiogaluppo
Created December 7, 2015 22:53
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 fabiogaluppo/0d9dafde1c5acb6867c3 to your computer and use it in GitHub Desktop.
Save fabiogaluppo/0d9dafde1c5acb6867c3 to your computer and use it in GitHub Desktop.
total = sum(std::begin(xs), std::begin(xs) + 4);
std::cout << total << "\n"; //10
total = sum(xs);
std::cout << total << "\n"; //55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment