unordered_map::find() 的一个特性是自动插入我们用 0 值查找的键吗?让我说清楚
unordered_map<int, int> tempMap;
//some code
if(tempMap.find(1) == tempMap.end()){
//do something but not insert the 1 with a corresponding value into the tempMap
}
所以如果我再次查找 1,它会在 tempMap 中有 0 作为对应值吗?这是 unordered_map 的一个特性吗?