Navigation
API > API/Runtime > API/Runtime/Chaos > API/Runtime/Chaos/THashMappedArray
Description
Add an element with the specified ID to the map. Returns a reference to the newly inserted element. It is an error to insert an item twice, but this is only detected in debug builds. Use TryAdd if you do not know whether the items already exists in the map.
| Name | Add |
| Type | function |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/Framework/HashMappedArray.h |
| Include Path | #include "Chaos/Framework/HashMappedArray.h" |
FElementType & Add
(
const FIDType ID,
const FElementType & Element
)