The following code seems to always follow the true branch.
#include #include class TestClass { // implementation } int mai
Yes, that's defined behaviour. If an element isn't yet in a map when you access it via operator[], it gets default constructed.
operator[]