Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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