vendredi 23 janvier 2015

What does this variadic template code do?


template <class F, class... Args>
void for_each_argument(F f, Args&&... args) {
[](...){}((f(std::forward<Args>(args)), 0)...);
}


It was recently featured on isocpp.org without explanation.


Aucun commentaire:

Enregistrer un commentaire