We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
if a name, which is not there in our map is given as input, that key and a default value of 0 will be inserted to the map.
With each such query, size of our map increases. I think that is a bad way to write the code.
Maps-STL
You are viewing a single comment's thread. Return to all comments →
In the last else case,
if a name, which is not there in our map is given as input, that key and a default value of 0 will be inserted to the map. With each such query, size of our map increases. I think that is a bad way to write the code.