Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++17 fold expressions #1140

Closed
guwirth opened this issue May 23, 2017 · 0 comments · Fixed by #1223
Closed

C++17 fold expressions #1140

guwirth opened this issue May 23, 2017 · 0 comments · Fixed by #1223
Milestone

Comments

@guwirth
Copy link
Collaborator

guwirth commented May 23, 2017

A convenient syntax for applying a binary operator iteratively to the elements of a parameter pack: template <typename ...Args> auto f(Args ...args) { return (0 + ... + args); }

http://wg21.link/n4295
related to #1104

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

1 participant