078a9affa0
Iterating over it returns each side number in turn. This allows converting many loops of the form: ``` for (int i = 0; i < MAX_SIDES_PER_SEGMENT; ++i) ``` to the compact form: ``` for (const auto i : MAX_SIDES_PER_SEGMENT) ``` The compact form brings the usual benefit of range-based for: delegating iteration to the compiler prevents the loop body from skipping a step, and makes clear in the code that this is the case. |
||
---|---|---|
.. | ||
escort.cpp | ||
gamepal.cpp | ||
inferno.ini | ||
libmve.h | ||
movie.cpp | ||
movie.h |