map<int, char*> mapItems;
auto it = find_if(mapItems.begin(), mapItems.end(), [&](const pair<int, char*> &item) {
return item->first == 0/*期望值*/;
});
std::map使用std::find_if算法
猜你喜欢
转载自blog.csdn.net/sdhongjun/article/details/80263695
今日推荐
周排行