mapのinsert

std::mapのinsert関数では上書きができない

に嵌っていました(ちゃんと仕様書よめ)

 

特定のkeyに対応するvalueを変更したい場合は

operator[]の戻り値に代入する