Navigation
API > API/Runtime > API/Runtime/Chaos > API/Runtime/Chaos/THashMappedArray
Description
Try to add an element with the specified ID to the map. Does nothing if an Element with the same ID is already in the map. Returns true if the element was added, false if the ID already existed.
| Name | TryAdd |
| Type | function |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/Framework/HashMappedArray.h |
| Include Path | #include "Chaos/Framework/HashMappedArray.h" |
bool TryAdd
(
const FIDType ID,
const FElementType & Element
)