Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Containers > API/Runtime/Core/Containers/TScriptMap
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Containers/Map.h |
| Include | #include "Containers/Map.h" |
void &42; FindOrAdd
&40;
const void &42; Key,
const FScriptMapLayout & Layout,
TFunctionRef< uint32(const void &42;)> GetKeyHash,
TFunctionRef< bool(const void &42;, const void &42;)> KeyEqualityFn,
TFunctionRef< void(void &42;, void &42;)> ConstructPairFn
&41;
Remarks
Constructs a new key-value pair if key didn't exist
No need to rehash after calling. The hash table must be properly hashed before calling. The address to the value, not the pair