64,648
社区成员
发帖
与我相关
我的任务
分享
std::map<int, int> testMap;
testMap.insert(std::make_pair(10, 2));
testMap.insert(std::make_pair(11, 3));
testMap.insert(std::make_pair(12, 4));
testMap.insert(std::make_pair(13, 5));
testMap.insert(std::make_pair(14, 6));
testMap.insert(std::make_pair(15, 7));
for (auto t : testMap)
{
// if (t.first == 12)
// {
// testMap.erase(t);
// }
}