O'Reilly logo
  • LI WEI thinks this is interesting:

UE4 will crash if you use square brackets to access a key that doesn't exist in the map yet, so be careful! The C++ STL does not crash if you do this.

From

Cover of Learning C++ by Creating Games with UE4

Note

UE4在访问不存在的TMap时会Crash