This should be the only line needed here since operator[] on a map default constructs the value if a mapping does not exist.