Postfix increment and decrement operators create a temporary object when used while prefix operators donít.

It is therefore more efficient to use the prefix version where possible, particularly in for loop constructs as whatever is used will be called multiple times in that case, i.e.,

we should use:

for (int nType = 0; nType < MM_NUM_TYPES; ++nType)
{
Ö
}