Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TSet
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ElementType & FindOrAdd
(
const InElementType& InElement, |
Adds an element to the set if not already present and returns a reference to the added or existing element. | Containers/Set.h | |
ElementType & FindOrAdd
(
InElementType&& InElement, |
Containers/Set.h |
FindOrAdd(const InElementType &, bool *)
Description
Adds an element to the set if not already present and returns a reference to the added or existing element.
| Name | FindOrAdd |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Set.h |
| Include Path | #include "Containers/Set.h" |
ElementType & FindOrAdd
(
const InElementType & 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 |
FindOrAdd(InElementType &&, bool *)
| Name | FindOrAdd |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Set.h |
| Include Path | #include "Containers/Set.h" |
ElementType & FindOrAdd
(
InElementType && InElement,
bool * bIsAlreadyInSetPtr
)