Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TCompactSet
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSetElementId Emplace
(
ArgType&& Arg, |
Adds an element to the set. | ||
TPair< FSetElementId, bool > Emplace
(
EInPlace, |
Adds an element to the set by constructing the ElementType in-place with multiple args. |
Emplace(ArgType &&, bool *)
Description
Adds an element to the set.
| Name | Emplace |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/CompactSet.h.inl |
| Include Path | #include "Containers/CompactSet.h.inl" |
template<typename ArgType>
FSetElementId Emplace
(
ArgType && Arg,
bool * bIsAlreadyInSetPtr
)
A handle to the element stored in the set.
Parameters
| Name | Remarks |
|---|---|
| Arg | The argument(s) to be forwarded to the set element's constructor. |
| bIsAlreadyInSetPtr | [out] Optional pointer to bool that will be set depending on whether element is already in set |
Emplace(EInPlace, ArgTypes &&...)
Description
Adds an element to the set by constructing the ElementType in-place with multiple args.
| Name | Emplace |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/CompactSet.h.inl |
| Include Path | #include "Containers/CompactSet.h.inl" |
template<typename... ArgTypes>
TPair< FSetElementId , bool > Emplace
(
EInPlace ,
ArgTypes &&... InArgs
)
Pair of (element id, whether an equivalent element already existed).
Parameters
| Name | Remarks |
|---|---|
| EInPlace | Tag to disambiguate in-place construction. |
| InArgs | Arguments forwarded to ElementType's constructor. |