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 * FindOrAdd
(
const void * Key,
const FScriptMapLayout & Layout,
TFunctionRef < uint32 > GetKeyHash,
TFunctionRef < bool> KeyEqualityFn,
TFunctionRef < void> ConstructPairFn
)
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