I\'m trying to figure out the best way to determine whether I\'m in the last iteration of a loop over a map in order to do something like the following:
for
This seems like the simplest:
bool last_iteration = iter == (--someMap.end());