Is there a convenient way to get the index of the current container entry in a C++11 foreach loop, like enumerate in python:
enumerate
for idx, obj in enu
If you need the index then a traditional for works perfectly well.
for (int idx=0; idx