auto is supported c++11 feature, even gcc-4.4 in centos6 has it.

大胆的使用吧！简化编码

Signed-off-by: microcai <microcaicai@gmail.com>