Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TScriptMap
Description
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.
| Name | FindOrAdd |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Map.h |
| Include Path | #include "Containers/Map.h" |
void * FindOrAdd
(
const void * Key,
const FScriptMapLayout & Layout,
TFunctionRef < uint32> GetKeyHash,
TFunctionRef < bool> KeyEqualityFn,
TFunctionRef < void> ConstructPairFn
)
The address to the value, not the pair