When defining a std::map, does it make sense to make the key type const?
The key is already const, actually, because a key cannot change once an element was inserted in the map.
When defining a std::map, does it make sense to make the key type const?
The key is already const, actually, because a key cannot change once an element was inserted in the map.
精彩评论