If I have a TMap
with a pointer value type:
TMap<FKey, UMyObject*> MyMap;
and I call FindOrAdd
for a key not present in the map:
UMyObject*& MyObject = MyMap.FindOrAdd(K); // not found
…is the returned pointer guaranteed to be null? or is it uninitialized?
(The docs say…
if none exists, adds a value using the default constructor.
…but a pointer does not have constructors - default or otherwise.)