std::map<uint32_t, uint32_t> myhonormap = oDstProfile.GetHonorType(); for(std::map<uint32_t,uint32_t>::const_iterator it = oSrcProfile.GetHonorType().begin(); it != oSrcProfile.GetHonorType().end(); it++) { DEBUG_LOG("Map:key-value:[%u][%u]", it->first, it->second); std::map<uint32_t, uint32_t>::iterator iter = myhonormap.find(it->first); if(iter != myhonormap.end()) { iter->second = it->second; } else { myhonormap.insert(std::map<uint32_t, uint32_t>::value_type(it->first, it->second)); }