Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TCompactSet
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSetElementId EmplaceByHash
(
uint32 KeyHash, |
Adds an element to the set. | ||
TPair< FSetElementId, bool > EmplaceByHash
(
EInPlace, |
Adds an element to the set by constructing in-place with multiple args, using a precomputed hash. |
EmplaceByHash(uint32, ArgType &&, bool *)
Description
Adds an element to the set.
| Name | EmplaceByHash |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/CompactSet.h.inl |
| Include Path | #include "Containers/CompactSet.h.inl" |
template<typename ArgType>
FSetElementId EmplaceByHash
(
uint32 KeyHash,
ArgType && Arg,
bool * bIsAlreadyInSetPtr
)
A handle to the element stored in the set.
Parameters
| Name | Remarks |
|---|---|
| KeyHash | A precomputed hash value, calculated in the same way as ElementType is hashed. |
| 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 |
See Also
- Class documentation section on ByHash() functions
EmplaceByHash(EInPlace, uint32, ArgTypes &&...)
Description
Adds an element to the set by constructing in-place with multiple args, using a precomputed hash.
| Name | EmplaceByHash |
| 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 > EmplaceByHash
(
EInPlace ,
uint32 KeyHash,
ArgTypes &&... InArgs
)
Pair of (element id, whether an equivalent element already existed).
Parameters
| Name | Remarks |
|---|---|
| KeyHash | A precomputed hash value, calculated in the same way as ElementType is hashed. |
| EInPlace | Tag to disambiguate in-place construction. |
| InArgs | Arguments forwarded to ElementType's constructor. |
See Also
- Class documentation section on ByHash() functions.