UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TDefaultMapKeyFuncs< KeyType, ValueType, bInAllowDuplicateKeys > Struct Template Reference

#include <Map.h>

+ Inheritance diagram for TDefaultMapKeyFuncs< KeyType, ValueType, bInAllowDuplicateKeys >:

Public Types

typedef TTypeTraits< KeyType >::ConstPointerType KeyInitType
 
typedef const TPairInitializer< typename TTypeTraits< KeyType >::ConstInitType, typename TTypeTraits< ValueType >::ConstInitType > & ElementInitType
 
- Public Types inherited from BaseKeyFuncs< TPair< KeyType, ValueType >, KeyType, bInAllowDuplicateKeys >
enum  
 
typedef KeyType KeyType
 
typedef TCallTraits< KeyType >::ParamType KeyInitType
 
typedef TCallTraits< TPair< KeyType, ValueType > >::ParamType ElementInitType
 

Static Public Member Functions

static UE_FORCEINLINE_HINT KeyInitType GetSetKey (ElementInitType Element)
 
static UE_FORCEINLINE_HINT bool Matches (KeyInitType A, KeyInitType B)
 
template<typename ComparableKey >
static UE_FORCEINLINE_HINT bool Matches (KeyInitType A, ComparableKey B)
 
static UE_FORCEINLINE_HINT uint32 GetKeyHash (KeyInitType Key)
 
template<typename ComparableKey >
static UE_FORCEINLINE_HINT uint32 GetKeyHash (ComparableKey Key)
 

Detailed Description

template<typename KeyType, typename ValueType, bool bInAllowDuplicateKeys>
struct TDefaultMapKeyFuncs< KeyType, ValueType, bInAllowDuplicateKeys >

Defines how the map's pairs are hashed.

Member Typedef Documentation

◆ ElementInitType

template<typename KeyType , typename ValueType , bool bInAllowDuplicateKeys>
typedef const TPairInitializer<typename TTypeTraits<KeyType>::ConstInitType, typename TTypeTraits<ValueType>::ConstInitType>& TDefaultMapKeyFuncs< KeyType, ValueType, bInAllowDuplicateKeys >::ElementInitType

◆ KeyInitType

template<typename KeyType , typename ValueType , bool bInAllowDuplicateKeys>
typedef TTypeTraits<KeyType>::ConstPointerType TDefaultMapKeyFuncs< KeyType, ValueType, bInAllowDuplicateKeys >::KeyInitType

Member Function Documentation

◆ GetKeyHash() [1/2]

template<typename KeyType , typename ValueType , bool bInAllowDuplicateKeys>
template<typename ComparableKey >
static UE_FORCEINLINE_HINT uint32 TDefaultMapKeyFuncs< KeyType, ValueType, bInAllowDuplicateKeys >::GetKeyHash ( ComparableKey  Key)
inlinestatic

◆ GetKeyHash() [2/2]

template<typename KeyType , typename ValueType , bool bInAllowDuplicateKeys>
static UE_FORCEINLINE_HINT uint32 TDefaultMapKeyFuncs< KeyType, ValueType, bInAllowDuplicateKeys >::GetKeyHash ( KeyInitType  Key)
inlinestatic

◆ GetSetKey()

template<typename KeyType , typename ValueType , bool bInAllowDuplicateKeys>
static UE_FORCEINLINE_HINT KeyInitType TDefaultMapKeyFuncs< KeyType, ValueType, bInAllowDuplicateKeys >::GetSetKey ( ElementInitType  Element)
inlinestatic

◆ Matches() [1/2]

template<typename KeyType , typename ValueType , bool bInAllowDuplicateKeys>
template<typename ComparableKey >
static UE_FORCEINLINE_HINT bool TDefaultMapKeyFuncs< KeyType, ValueType, bInAllowDuplicateKeys >::Matches ( KeyInitType  A,
ComparableKey  B 
)
inlinestatic

◆ Matches() [2/2]

template<typename KeyType , typename ValueType , bool bInAllowDuplicateKeys>
static UE_FORCEINLINE_HINT bool TDefaultMapKeyFuncs< KeyType, ValueType, bInAllowDuplicateKeys >::Matches ( KeyInitType  A,
KeyInitType  B 
)
inlinestatic

The documentation for this struct was generated from the following file: