使std :: map key const有意义吗?

Gra*_*eme 5 c++ const map

在定义a时std::map,是否有必要制作密钥类型const

Eti*_*tel 9

const实际上,密钥已经存在,因为一旦元素插入到地图中,密钥就无法更改.