How to update the value of a key in std::map after using the find method?
std::map
find
I have a map and iterator declaration like this:
You can update the value like following
auto itr = m.find('ch'); if (itr != m.end()){ (*itr).second = 98; }