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

TMap<FString, int> items; items.Add( "apples", 4 ); items.Add( "donuts", 12 ); items.Add( "swords", 1 ); items.Add( "shields", 2 );

From

Cover of Learning C++ by Creating Games with UE4

Note

TMap<FString,int> MyMap;

MyMap.Add("pistol",1);
MyMap.Add("MachineGun",2);