In C++ I need to iterate a certain number of times, but I don\'t need an iteration variable. For example:
for( int x=0; x<10; ++x ) { /* code goes her
To join the contest:
#include #include using namespace std; using namespace boost; namespace { template inline void unused(const T&) {} } int main() { for (auto&& i : irange(0,10)) { unused(i); cout << "Something" << endl; } return 0; }