if I am running through a list
list<Class A*> lclassA;
list<Class A*>::iterator = iter;
for(iter = lclassA.begin(); iter!=lclassA.end(); ++iter)
var1 = (*iter)->Getabba();
var2 = (*iter+1)->Getabba()
how can I increment iter to look at iter+1 but maintain the position of iter. as in if my list has 4 vars, I want to compare 1 to 2, the 2 to 3, the 3 to 4, then stop.