In what order does evaluation of post-increment operator happen?
- by sum1stolemyname
Given
std::vector<CMyClass> objects;
CMyClass list[MAX_OBJECT_COUNT];
Is it wise to do this?
for(unsigned int i = 0; i < objects.size(); list[i] = objects.at(i++));
Or should I expand my loop to this?
for(unsigned int i = 0; i < objects.size(); i++)
{
list[i] = objects.at(i);
}