Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TSet
Description
Adds an element to the set if not already present and returns a reference to the added or existing element.
| Name | FindOrAddByHash |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Set.h |
| Include Path | #include "Containers/Set.h" |
template<typename ElementReferenceType>
ElementType & FindOrAddByHash
(
uint32 KeyHash,
ElementReferenceType && InElement,
bool * bIsAlreadyInSetPtr
)
A reference to the element stored in the set
Parameters
| Name | Remarks |
|---|---|
| InElement | Element to add to set |
| bIsAlreadyInSetPtr | [out] Optional pointer to bool that will be set depending on whether element is already in set |
See Also
- Class documentation section on ByHash() functions