will my program crash because the int in my map is unitialized?
No; if the element with key word doesn’t exist, the element will be created and value initialized. A value-initialized int has a value of 0.
will my program crash because the int in my map is unitialized?
No; if the element with key word doesn’t exist, the element will be created and value initialized. A value-initialized int has a value of 0.