I have a situation where I have a map with one key and two values ex.
std::map<std::string, std::pair<double, double> > myMultiValueMap
depending on a condition I need to either update one value or the other.
I'd am looking for syntax to insert/ find the key and update either values in this map
yes I have used the insert on Maps before, but was not sure on multivalue map
std::map<std::string,double> myMap;
myMap.insert(std::make_pair("12345",0.00));
and find and update too
std::map<std::string,double>::iterator it = myMap.find(("12345");