DefaultKeyFuncs

A default implementation of the KeyFuncs used by [TSet](API\Runtime\Core\Containers\TSet) which uses the element as a key.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

Core

Header

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

Include

#include "Containers/Set.h"

Syntax

template<typename ElementType, bool bInAllowDuplicateKeys>
struct DefaultKeyFuncs : public BaseKeyFuncs< ElementType, ElementType, bInAllowDuplicateKeys >

Remarks

A default implementation of the KeyFuncs used by TSet which uses the element as a key.

Functions

Name Description

Public function Static

uint32

 

GetKeyHash

(
    KeyInitType Key
)

Calculates a hash index for a key.

Public function Static

uint32

 

GetKeyHash

(
    ComparableKey Key
)

Calculates a hash index for a key.

Public function Static

KeyInitType

 

GetSetKey

(
    ElementInitType Element
)

Public function Static

bool

 

Matches

(
    KeyInitType A,
    KeyInitType B
)

Public function Static

bool

 

Matches

(
    KeyInitType A,
    ComparableKey B
)

Typedefs

Name

Description

ElementInitType

KeyInitType