64,636
社区成员
发帖
与我相关
我的任务
分享
map<Key,T>::iterator it;
(*it).first; // the key value (of type Key)
(*it).second; // the mapped value (of type T)
(*it); // the "element value" (of type pair<const Key,T>)
it->first; // same as (*it).first (the key value)
it->second; // same as (*it).second (the mapped value)