我知道地图取消引用operator[]不是const,可以修改地图.但是,我想知道当操作员在右侧时会发生什么.例如:
operator[]
const
std::map<int, int> a; int b = a[0];
既然a没有0条目,这会在地图上用密钥创建一个新条目0吗?
a
0
c++ stl
c++ ×1
stl ×1