基于范围的for循环是为STL而设计的
for (<typename> x : object) { .... }
不同于for_each(),该循环允许修改容器内容,方法是使用引用参数
for (<typename> & x : object) { ... }