jeudi 28 février 2019

c++ repeat N iterations

I can clearly do something like this:

for(int i = 0; i < 10000; i++)
    testIteration();

But is there any std functions which does similar thing in one line? Something like that:

std::repeat(10000, testIteration);

Aucun commentaire:

Enregistrer un commentaire