samedi 28 février 2015

Is There a Standard Algorithm to Iterate Over a Range?


I need to call a lambda with every int in a range. Is there a standard algorithm that does this?


Ideally something equivalent:



for(auto i = 13; i < 42; ++i)[](int i){/*do something*/}(i);



Aucun commentaire:

Enregistrer un commentaire