TSet::EmplaceByHash

Adds an element to the set.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/Set.h

Include

#include "Containers/Set.h"

Syntax

template<typename ArgsType>
FSetElementId EmplaceByHash
(
    uint32 KeyHash,
    ArgsType && Args,
    bool * bIsAlreadyInSetPtr
)

Remarks

Adds an element to the set.

Returns

A handle to the element stored in the set.

Parameters

Parameter

Description

Args

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss