3 ms·
For those of us still stuck on C++98 at work, would you mind explaining what's going on here? In particular, I can't figure out why the ellipsis is so separate
by groovy2shoes 10y ago
For those of us still stuck on C++98 at work, would you mind explaining what's going on here? In particular, I can't figure out why the ellipsis is so separated from `args` here:
(std::cout << ... << args) << std::endl;
That looks like some black magic to me. The rest makes sense, I think.
- hendzen 10y agohttp://en.cppreference.com/w/cpp/language/fold http://en.cppreference.com/w/cpp/language/fold
- groovy2shoes 10y agoNeat! Thank you :)
- makecheck 10y agoHeh, great. I used to put an ellipsis into a programming example to mean “fill in whatever you actually do here”, and now C++ went and made it mean something. :)