Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Containers > API/Runtime/Core/Containers/TSet
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Containers/Set.h |
| Include | #include "Containers/Set.h" |
template<typename ElementReferenceType>
ElementType & FindOrAddByHash
&40;
uint32 KeyHash,
ElementReferenceType && InElement,
bool &42; bIsAlreadyInSetPtr
&41;
Remarks
Adds an element to the set if not already present and returns a reference to the added or existing element. A reference to the element stored in the set
Parameters
| Name | Description |
|---|---|
| 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