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

The main difference between TSet and TArray is that TSet does not allow duplicates—all the elements inside a TSet are guaranteed to be unique. A TArray variable does not mind duplicates of the same elements.

From

Cover of Learning C++ by Creating Games with UE4

Note

TSet和TArray不同的是,前者不允许队列中有重复的数据