map容器的遍历

在用列表时用到了map容器,,他的遍历是这样的:

for(auto allianceInfo:map){

(中间赋值用:auto name=map.second.szName)



}

你可能感兴趣的:(C++)