Sean Parent just published via Twitter this amazing short piece of code.
for_each_argument
by Sean Parent
The code is:
template <class F, class... Args> void for_each_argument(F f, Args&&... args) { [](...){}((f(std::forward<Args>(args)), 0)...); }
Add a Comment
Comments are closed.