prefix is better than postfix

This commit is contained in:
Tiago Gomes
2012-05-28 14:12:18 +01:00
parent a9c369aac1
commit 250d122fc8
8 changed files with 19 additions and 19 deletions

View File

@@ -36,7 +36,7 @@ printSymbolDictionary (void)
= symbolDict.begin();
while (it != symbolDict.end()) {
cout << it->first << " -> " << it->second << endl;
it ++;
++ it;
}
}
@@ -49,7 +49,7 @@ ostream& operator<< (ostream &os, const Symbol& s)
unordered_map<string, unsigned>::const_iterator it
= LiftedUtils::symbolDict.begin();
while (it != LiftedUtils::symbolDict.end() && it->second != s) {
it ++;
++ it;
}
assert (it != LiftedUtils::symbolDict.end());
os << it->first;
@@ -108,7 +108,7 @@ Substitution::getDiscardedLogVars (void) const
} else {
doneLvs.insert (it->second);
}
it ++;
++ it;
}
return discardedLvs;
}