I need to call a lambda with every int in a range. Is there a standard algorithm that does this?
int
Ideally something equivalent:
for(auto i = 13; i < 42; ++i)[](int i){/*do something*/}(i);
Aucun commentaire:
Enregistrer un commentaire