Closed XJTUmg closed 7 years ago
for loops to range loops(dont forget the &)
using auto
more
example of a commit(with a meaningful message)
git commit -a -m 'fixing a for loop to range loop'
meaningful examples
for(ruleIndex = 0; ruleIndex < totalRule; ruleIndex++) bool flag = true; int total_edge = vecRules[ruleIndex].precedencelist.size();
to
for (const auto &rule : vecRules ) bool flag = true; auto total_edge = rule.precedencelist.size();
for loops to range loops(dont forget the &)
using auto
more
example of a commit(with a meaningful message)
meaningful examples
to