On the site you linked it says:
When the default allocator is used, this results in the key being copy
constructed from key and the mapped value being value-initialized.
So the int
is value-initialized:
The effects of value initialization are:
[…]
4) otherwise, the object is zero-initialized
This is why the result is 0
.