C++ 核心指南目录
“Prefer to declare a loop variable in the initializer part of a for-statement”
for
参见 ES.6