c++ 11 Range loop will be better.