UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs > Class Template Reference
+ Inheritance diagram for TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs >:

Public Types

typedef InKeyType KeyType
 
typedef InValueType ValueType
 
typedef SetAllocator SetAllocatorType
 
typedef KeyFuncs KeyFuncsType
 
typedef TSORTABLEMAPBASE< KeyType, ValueType, SetAllocator, KeyFuncs > Super
 
typedef Super::KeyInitType KeyInitType
 
typedef Super::KeyConstPointerType KeyConstPointerType
 
using IntrusiveUnsetOptionalStateType = TMAP
 
- Public Types inherited from TMAPBASE< KeyType, ValueType, SetAllocator, KeyFuncs >
typedef TTypeTraits< KeyType >::ConstPointerType KeyConstPointerType
 
typedef TTypeTraits< KeyType >::ConstInitType KeyInitType
 
typedef TTypeTraits< ValueType >::ConstInitType ValueInitType
 
typedef TPair< KeyType, ValueType > ElementType
 
using TRangedForIterator = typename ElementSetType::TRangedForIterator
 
using TRangedForConstIterator = typename ElementSetType::TRangedForConstIterator
 

Public Member Functions

constexpr TMAP ()=default
 
consteval TMAP (EConstEval)
 
 TMAP (TMAP &&)=default
 
 TMAP (const TMAP &)=default
 
TMAPoperator= (TMAP &&)=default
 
TMAPoperator= (const TMAP &)=default
 
template<typename OtherSetAllocator >
 TMAP (TMAP< KeyType, ValueType, OtherSetAllocator, KeyFuncs > &&Other)
 
template<typename OtherSetAllocator >
 TMAP (const TMAP< KeyType, ValueType, OtherSetAllocator, KeyFuncs > &Other)
 
 TMAP (std::initializer_list< TPairInitializer< const KeyType &, const ValueType & > > InitList)
 
 TMAP (FIntrusiveUnsetOptionalState Tag)
 
bool operator== (FIntrusiveUnsetOptionalState Tag) const
 
template<typename OtherSetAllocator >
TMAPoperator= (TMAP< KeyType, ValueType, OtherSetAllocator, KeyFuncs > &&Other)
 
template<typename OtherSetAllocator >
TMAPoperator= (const TMAP< KeyType, ValueType, OtherSetAllocator, KeyFuncs > &Other)
 
TMAPoperator= (std::initializer_list< TPairInitializer< const KeyType &, const ValueType & > > InitList)
 
bool RemoveAndCopyValue (KeyInitType Key, ValueType &OutRemovedValue)
 
bool RemoveAndCopyValueStable (KeyInitType Key, ValueType &OutRemovedValue)
 
template<typename ComparableKey >
bool RemoveAndCopyValueByHash (uint32 KeyHash, const ComparableKey &Key, ValueType &OutRemovedValue)
 
ValueType FindAndRemoveChecked (KeyConstPointerType Key)
 
template<typename OtherSetAllocator >
void Append (TMAP< KeyType, ValueType, OtherSetAllocator, KeyFuncs > &&OtherMap)
 
template<typename OtherSetAllocator >
void Append (const TMAP< KeyType, ValueType, OtherSetAllocator, KeyFuncs > &OtherMap)
 
UE_FORCEINLINE_HINT ValueTypeoperator[] (KeyConstPointerType Key)
 
UE_FORCEINLINE_HINT const ValueTypeoperator[] (KeyConstPointerType Key) const
 
- Public Member Functions inherited from TSORTABLEMAPBASE< InKeyType, InValueType, SetAllocator, KeyFuncs >
UE_FORCEINLINE_HINT void KeySort (const PREDICATE_CLASS &Predicate)
 
UE_FORCEINLINE_HINT void KeyStableSort (const PREDICATE_CLASS &Predicate)
 
UE_FORCEINLINE_HINT void ValueSort (const PREDICATE_CLASS &Predicate)
 
UE_FORCEINLINE_HINT void ValueStableSort (const PREDICATE_CLASS &Predicate)
 
void SortFreeList ()
 
- Public Member Functions inherited from TMAPBASE< KeyType, ValueType, SetAllocator, KeyFuncs >
bool OrderIndependentCompareEqual (const TMAPBASE &Other) const
 
UE_FORCEINLINE_HINT void Empty (int32 ExpectedNumElements=0)
 
UE_FORCEINLINE_HINT void Reset ()
 
UE_FORCEINLINE_HINT void Shrink ()
 
UE_FORCEINLINE_HINT void Compact ()
 
UE_FORCEINLINE_HINT void CompactStable ()
 
UE_FORCEINLINE_HINT void Reserve (int32 Number)
 
bool IsEmpty () const
 
UE_FORCEINLINE_HINT int32 Num () const
 
UE_FORCEINLINE_HINT int32 Max () const
 
UE_FORCEINLINE_HINT int32 GetMaxIndex () const
 
UE_FORCEINLINE_HINT bool IsValidId (FSetElementId Id) const
 
UE_FORCEINLINE_HINT ElementTypeGet (FSetElementId Id)
 
UE_FORCEINLINE_HINT const ElementTypeGet (FSetElementId Id) const
 
template<typename Allocator >
int32 GetKeys (TArray< KeyType, Allocator > &OutKeys) const
 
template<typename InSetKeyFuncs , typename InSetAllocator >
int32 GetKeys (TSet< KeyType, InSetKeyFuncs, InSetAllocator > &OutKeys) const
 
UE_FORCEINLINE_HINT SIZE_T GetAllocatedSize () const
 
UE_FORCEINLINE_HINT void CountBytes (FArchive &Ar) const
 
UE_FORCEINLINE_HINT ValueType & Add (const KeyType &InKey, const ValueType &InValue)
 
UE_FORCEINLINE_HINT ValueType & Add (const KeyType &InKey, ValueType &&InValue)
 
UE_FORCEINLINE_HINT ValueType & Add (KeyType &&InKey, const ValueType &InValue)
 
UE_FORCEINLINE_HINT ValueType & Add (KeyType &&InKey, ValueType &&InValue)
 
UE_FORCEINLINE_HINT ValueType & AddByHash (uint32 KeyHash, const KeyType &InKey, const ValueType &InValue)
 
UE_FORCEINLINE_HINT ValueType & AddByHash (uint32 KeyHash, const KeyType &InKey, ValueType &&InValue)
 
UE_FORCEINLINE_HINT ValueType & AddByHash (uint32 KeyHash, KeyType &&InKey, const ValueType &InValue)
 
UE_FORCEINLINE_HINT ValueType & AddByHash (uint32 KeyHash, KeyType &&InKey, ValueType &&InValue)
 
UE_FORCEINLINE_HINT ValueType & Add (const KeyType &InKey)
 
UE_FORCEINLINE_HINT ValueType & Add (KeyType &&InKey)
 
UE_FORCEINLINE_HINT ValueType & AddByHash (uint32 KeyHash, const KeyType &InKey)
 
UE_FORCEINLINE_HINT ValueType & AddByHash (uint32 KeyHash, KeyType &&InKey)
 
UE_FORCEINLINE_HINT ValueType & Add (const TTuple< KeyType, ValueType > &InKeyValue)
 
UE_FORCEINLINE_HINT ValueType & Add (TTuple< KeyType, ValueType > &&InKeyValue)
 
template<typename InitKeyType = KeyType, typename InitValueType = ValueType>
ValueType & Emplace (InitKeyType &&InKey, InitValueType &&InValue)
 
template<typename InitKeyType = KeyType, typename InitValueType = ValueType>
ValueType & EmplaceByHash (uint32 KeyHash, InitKeyType &&InKey, InitValueType &&InValue)
 
template<typename InitKeyType = KeyType>
ValueType & Emplace (InitKeyType &&InKey)
 
template<typename InitKeyType = KeyType>
ValueType & EmplaceByHash (uint32 KeyHash, InitKeyType &&InKey)
 
int32 Remove (KeyConstPointerType InKey)
 
int32 RemoveStable (KeyConstPointerType InKey)
 
template<typename ComparableKey >
int32 RemoveByHash (uint32 KeyHash, const ComparableKey &Key)
 
UE_FORCEINLINE_HINT void Remove (FSetElementId Id)
 
const KeyType * FindKey (ValueInitType Value) const
 
template<typename Predicate >
TMAP< KeyType, ValueType, SetAllocator, KeyFuncs > FilterByPredicate (Predicate Pred) const
 
ValueType * Find (KeyConstPointerType Key)
 
UE_FORCEINLINE_HINT const ValueType * Find (KeyConstPointerType Key) const
 
template<typename ComparableKey >
ValueType * FindByHash (uint32 KeyHash, const ComparableKey &Key)
 
template<typename ComparableKey >
UE_FORCEINLINE_HINT const ValueType * FindByHash (uint32 KeyHash, const ComparableKey &Key) const
 
template<typename ComparableKey >
ValueType & FindByHashChecked (uint32 KeyHash, const ComparableKey &Key)
 
template<typename ComparableKey >
UE_FORCEINLINE_HINT const ValueType & FindByHashChecked (uint32 KeyHash, const ComparableKey &Key) const
 
UE_FORCEINLINE_HINT FSetElementId FindId (KeyInitType Key) const
 
template<typename ComparableKey >
UE_FORCEINLINE_HINT FSetElementId FindIdByHash (uint32 KeyHash, const ComparableKey &Key) const
 
UE_FORCEINLINE_HINT ValueType & FindOrAdd (const KeyType &Key)
 
UE_FORCEINLINE_HINT ValueType & FindOrAdd (KeyType &&Key)
 
UE_FORCEINLINE_HINT ValueType & FindOrAddByHash (uint32 KeyHash, const KeyType &Key)
 
UE_FORCEINLINE_HINT ValueType & FindOrAddByHash (uint32 KeyHash, KeyType &&Key)
 
UE_FORCEINLINE_HINT ValueType & FindOrAdd (const KeyType &Key, const ValueType &Value)
 
UE_FORCEINLINE_HINT ValueType & FindOrAdd (const KeyType &Key, ValueType &&Value)
 
UE_FORCEINLINE_HINT ValueType & FindOrAdd (KeyType &&Key, const ValueType &Value)
 
UE_FORCEINLINE_HINT ValueType & FindOrAdd (KeyType &&Key, ValueType &&Value)
 
UE_FORCEINLINE_HINT ValueType & FindOrAddByHash (uint32 KeyHash, const KeyType &Key, const ValueType &Value)
 
UE_FORCEINLINE_HINT ValueType & FindOrAddByHash (uint32 KeyHash, const KeyType &Key, ValueType &&Value)
 
UE_FORCEINLINE_HINT ValueType & FindOrAddByHash (uint32 KeyHash, KeyType &&Key, const ValueType &Value)
 
UE_FORCEINLINE_HINT ValueType & FindOrAddByHash (uint32 KeyHash, KeyType &&Key, ValueType &&Value)
 
const ValueType & FindChecked (KeyConstPointerType Key) const
 
ValueType & FindChecked (KeyConstPointerType Key)
 
ValueType FindRef (KeyConstPointerType Key) const
 
ValueType FindRef (KeyConstPointerType Key, ValueType DefaultValue) const
 
ElementTypeFindArbitraryElement ()
 
const ElementTypeFindArbitraryElement () const
 
UE_FORCEINLINE_HINT bool Contains (KeyConstPointerType Key) const
 
template<typename ComparableKey >
UE_FORCEINLINE_HINT bool ContainsByHash (uint32 KeyHash, const ComparableKey &Key) const
 
TArray< ElementTypeArray () const
 
template<typename Allocator >
void GenerateKeyArray (TArray< KeyType, Allocator > &OutArray) const
 
template<typename Allocator >
void GenerateValueArray (TArray< ValueType, Allocator > &OutArray) const
 
void Dump (FOutputDevice &Ar)
 
void WriteMemoryImage (FMemoryImageWriter &Writer) const
 
void CopyUnfrozen (const FMemoryUnfreezeContent &Context, void *Dst) const
 
UE_FORCEINLINE_HINT TIterator CreateIterator ()
 
UE_FORCEINLINE_HINT TConstIterator CreateConstIterator () const
 
UE_FORCEINLINE_HINT TKeyIterator CreateKeyIterator (typename TKeyIterator::KeyArgumentType InKey)
 
UE_FORCEINLINE_HINT TConstKeyIterator CreateConstKeyIterator (typename TConstKeyIterator::KeyArgumentType InKey) const
 
UE_FORCEINLINE_HINT TRangedForIterator begin ()
 
UE_FORCEINLINE_HINT TRangedForConstIterator begin () const
 
UE_FORCEINLINE_HINT TRangedForIterator end ()
 
UE_FORCEINLINE_HINT TRangedForConstIterator end () const
 

Static Public Attributes

static constexpr bool bHasIntrusiveUnsetOptionalState = true
 

Friends

template<typename , typename >
class TScriptMap
 

Additional Inherited Members

- Static Public Member Functions inherited from TMAPBASE< KeyType, ValueType, SetAllocator, KeyFuncs >
static void AppendHash (const FPlatformTypeLayoutParameters &LayoutParams, FSHA1 &Hasher)
 
- Protected Types inherited from TSORTABLEMAPBASE< InKeyType, InValueType, SetAllocator, KeyFuncs >
typedef TMAPBASE< InKeyType, InValueType, SetAllocator, KeyFuncs > Super
 
using IntrusiveUnsetOptionalStateType = TSORTABLEMAPBASE
 
- Protected Types inherited from TMAPBASE< KeyType, ValueType, SetAllocator, KeyFuncs >
using IntrusiveUnsetOptionalStateType = TMAPBASE
 
using ElementSetType = TSET< ElementType, KeyFuncs, SetAllocator >
 
- Protected Member Functions inherited from TSORTABLEMAPBASE< InKeyType, InValueType, SetAllocator, KeyFuncs >
constexpr TSORTABLEMAPBASE ()=default
 
consteval TSORTABLEMAPBASE (EConstEval)
 
 TSORTABLEMAPBASE (TSORTABLEMAPBASE &&)=default
 
 TSORTABLEMAPBASE (const TSORTABLEMAPBASE &)=default
 
 TSORTABLEMAPBASE (TSORTABLEMAPBASE< InKeyType, InValueType, OtherSetAllocator, KeyFuncs > &&Other)
 
 TSORTABLEMAPBASE (const TSORTABLEMAPBASE< InKeyType, InValueType, OtherSetAllocator, KeyFuncs > &Other)
 
 TSORTABLEMAPBASE (FIntrusiveUnsetOptionalState Tag)
 
TSORTABLEMAPBASEoperator= (TSORTABLEMAPBASE &&)=default
 
TSORTABLEMAPBASEoperator= (const TSORTABLEMAPBASE &)=default
 
TSORTABLEMAPBASEoperator= (TSORTABLEMAPBASE< InKeyType, InValueType, OtherSetAllocator, KeyFuncs > &&Other)
 
TSORTABLEMAPBASEoperator= (const TSORTABLEMAPBASE< InKeyType, InValueType, OtherSetAllocator, KeyFuncs > &Other)
 
bool operator== (FIntrusiveUnsetOptionalState Tag) const
 
- Protected Member Functions inherited from TMAPBASE< KeyType, ValueType, SetAllocator, KeyFuncs >
constexpr TMAPBASE ()=default
 
consteval TMAPBASE (EConstEval)
 
 TMAPBASE (TMAPBASE &&)=default
 
 TMAPBASE (const TMAPBASE &)=default
 
TMAPBASEoperator= (TMAPBASE &&)=default
 
TMAPBASEoperator= (const TMAPBASE &)=default
 
template<typename OtherSetAllocator >
 TMAPBASE (TMAPBASE< KeyType, ValueType, OtherSetAllocator, KeyFuncs > &&Other)
 
template<typename OtherSetAllocator >
 TMAPBASE (const TMAPBASE< KeyType, ValueType, OtherSetAllocator, KeyFuncs > &Other)
 
 ~TMAPBASE ()
 
 TMAPBASE (FIntrusiveUnsetOptionalState Tag)
 
bool operator== (FIntrusiveUnsetOptionalState Tag) const
 
template<typename OtherSetAllocator >
TMAPBASEoperator= (TMAPBASE< KeyType, ValueType, OtherSetAllocator, KeyFuncs > &&Other)
 
template<typename OtherSetAllocator >
TMAPBASEoperator= (const TMAPBASE< KeyType, ValueType, OtherSetAllocator, KeyFuncs > &Other)
 
- Protected Attributes inherited from TMAPBASE< KeyType, ValueType, SetAllocator, KeyFuncs >
ElementSetType Pairs
 
- Static Protected Attributes inherited from TSORTABLEMAPBASE< InKeyType, InValueType, SetAllocator, KeyFuncs >
static constexpr bool bHasIntrusiveUnsetOptionalState
 
- Static Protected Attributes inherited from TMAPBASE< KeyType, ValueType, SetAllocator, KeyFuncs >
static constexpr bool bHasIntrusiveUnsetOptionalState = true
 

Detailed Description

template<typename InKeyType, typename InValueType, typename SetAllocator, typename KeyFuncs>
class TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs >

A TMAPBASE specialization that only allows a single value associated with each key.

Member Typedef Documentation

◆ IntrusiveUnsetOptionalStateType

template<typename InKeyType , typename InValueType , typename SetAllocator , typename KeyFuncs >
using TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs >::IntrusiveUnsetOptionalStateType = TMAP

◆ KeyConstPointerType

template<typename InKeyType , typename InValueType , typename SetAllocator , typename KeyFuncs >
typedef Super::KeyConstPointerType TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs >::KeyConstPointerType

◆ KeyFuncsType

template<typename InKeyType , typename InValueType , typename SetAllocator , typename KeyFuncs >
typedef KeyFuncs TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs >::KeyFuncsType

◆ KeyInitType

template<typename InKeyType , typename InValueType , typename SetAllocator , typename KeyFuncs >
typedef Super::KeyInitType TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs >::KeyInitType

◆ KeyType

template<typename InKeyType , typename InValueType , typename SetAllocator , typename KeyFuncs >
typedef InKeyType TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs >::KeyType

◆ SetAllocatorType

template<typename InKeyType , typename InValueType , typename SetAllocator , typename KeyFuncs >
typedef SetAllocator TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs >::SetAllocatorType

◆ Super

template<typename InKeyType , typename InValueType , typename SetAllocator , typename KeyFuncs >
typedef TSORTABLEMAPBASE<KeyType, ValueType, SetAllocator, KeyFuncs> TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs >::Super

◆ ValueType

template<typename InKeyType , typename InValueType , typename SetAllocator , typename KeyFuncs >
typedef InValueType TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs >::ValueType

Constructor & Destructor Documentation

◆ TMAP() [1/8]

template<typename InKeyType , typename InValueType , typename SetAllocator , typename KeyFuncs >
constexpr TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs >::TMAP ( )
constexprdefault

◆ TMAP() [2/8]

template<typename InKeyType , typename InValueType , typename SetAllocator , typename KeyFuncs >
consteval TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs >::TMAP ( EConstEval  )
inlineexplicit

◆ TMAP() [3/8]

template<typename InKeyType , typename InValueType , typename SetAllocator , typename KeyFuncs >
TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs >::TMAP ( TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs > &&  )
default

◆ TMAP() [4/8]

template<typename InKeyType , typename InValueType , typename SetAllocator , typename KeyFuncs >
TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs >::TMAP ( const TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs > &  )
default

◆ TMAP() [5/8]

template<typename InKeyType , typename InValueType , typename SetAllocator , typename KeyFuncs >
TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs >::TMAP ( TMAP< KeyType, ValueType, OtherSetAllocator, KeyFuncs > &&  Other)
inline

Constructor for moving elements from a TMAP with a different SetAllocator

◆ TMAP() [6/8]

template<typename InKeyType , typename InValueType , typename SetAllocator , typename KeyFuncs >
TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs >::TMAP ( const TMAP< KeyType, ValueType, OtherSetAllocator, KeyFuncs > &  Other)
inline

Constructor for copying elements from a TMAP with a different SetAllocator

◆ TMAP() [7/8]

template<typename InKeyType , typename InValueType , typename SetAllocator , typename KeyFuncs >
TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs >::TMAP ( std::initializer_list< TPairInitializer< const KeyType &, const ValueType & > >  InitList)
inline

Constructor which gets its elements from a native initializer list

◆ TMAP() [8/8]

template<typename InKeyType , typename InValueType , typename SetAllocator , typename KeyFuncs >
TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs >::TMAP ( FIntrusiveUnsetOptionalState  Tag)
inlineexplicit

Member Function Documentation

◆ Append() [1/2]

template<typename InKeyType , typename InValueType , typename SetAllocator , typename KeyFuncs >
void TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs >::Append ( const TMAP< KeyType, ValueType, OtherSetAllocator, KeyFuncs > &  OtherMap)
inline

Add all items from another map to our map (if any keys are in both, the value from the other map wins).

Parameters
OtherMapThe other map of items to add.

◆ Append() [2/2]

template<typename InKeyType , typename InValueType , typename SetAllocator , typename KeyFuncs >
void TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs >::Append ( TMAP< KeyType, ValueType, OtherSetAllocator, KeyFuncs > &&  OtherMap)
inline

Move all items from another map into our map (if any keys are in both, the value from the other map wins) and empty the other map.

Parameters
OtherMapThe other map of items to move the elements from.

◆ FindAndRemoveChecked()

template<typename InKeyType , typename InValueType , typename SetAllocator , typename KeyFuncs >
ValueType TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs >::FindAndRemoveChecked ( KeyConstPointerType  Key)
inline

Find a pair with the specified key, removes it from the map, and returns the value part of the pair.

If no pair was found, an exception is thrown.

Parameters
Keythe key to search for
Returns
whether or not the key was found

◆ operator=() [1/5]

template<typename InKeyType , typename InValueType , typename SetAllocator , typename KeyFuncs >
TMAP & TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs >::operator= ( const TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs > &  )
default

◆ operator=() [2/5]

template<typename InKeyType , typename InValueType , typename SetAllocator , typename KeyFuncs >
TMAP & TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs >::operator= ( const TMAP< KeyType, ValueType, OtherSetAllocator, KeyFuncs > &  Other)
inline

Assignment operator for copying elements from a TMAP with a different SetAllocator

◆ operator=() [3/5]

template<typename InKeyType , typename InValueType , typename SetAllocator , typename KeyFuncs >
TMAP & TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs >::operator= ( std::initializer_list< TPairInitializer< const KeyType &, const ValueType & > >  InitList)
inline

Assignment operator which gets its elements from a native initializer list

◆ operator=() [4/5]

template<typename InKeyType , typename InValueType , typename SetAllocator , typename KeyFuncs >
TMAP & TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs >::operator= ( TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs > &&  )
default

◆ operator=() [5/5]

template<typename InKeyType , typename InValueType , typename SetAllocator , typename KeyFuncs >
TMAP & TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs >::operator= ( TMAP< KeyType, ValueType, OtherSetAllocator, KeyFuncs > &&  Other)
inline

Assignment operator for moving elements from a TMAP with a different SetAllocator

◆ operator==()

template<typename InKeyType , typename InValueType , typename SetAllocator , typename KeyFuncs >
bool TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs >::operator== ( FIntrusiveUnsetOptionalState  Tag) const
inline

◆ operator[]() [1/2]

template<typename InKeyType , typename InValueType , typename SetAllocator , typename KeyFuncs >
UE_FORCEINLINE_HINT ValueType & TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs >::operator[] ( KeyConstPointerType  Key)
inline

◆ operator[]() [2/2]

template<typename InKeyType , typename InValueType , typename SetAllocator , typename KeyFuncs >
UE_FORCEINLINE_HINT const ValueType & TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs >::operator[] ( KeyConstPointerType  Key) const
inline

◆ RemoveAndCopyValue()

template<typename InKeyType , typename InValueType , typename SetAllocator , typename KeyFuncs >
bool TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs >::RemoveAndCopyValue ( KeyInitType  Key,
ValueType OutRemovedValue 
)
inline

Remove the pair with the specified key and copies the value that was removed to the ref parameter

Parameters
KeyThe key to search for
OutRemovedValueIf found, the value that was removed (not modified if the key was not found)
Returns
whether or not the key was found

◆ RemoveAndCopyValueByHash()

template<typename InKeyType , typename InValueType , typename SetAllocator , typename KeyFuncs >
template<typename ComparableKey >
bool TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs >::RemoveAndCopyValueByHash ( uint32  KeyHash,
const ComparableKey Key,
ValueType OutRemovedValue 
)
inline

See RemoveAndCopyValue() and class documentation section on ByHash() functions

◆ RemoveAndCopyValueStable()

template<typename InKeyType , typename InValueType , typename SetAllocator , typename KeyFuncs >
bool TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs >::RemoveAndCopyValueStable ( KeyInitType  Key,
ValueType OutRemovedValue 
)
inline

See RemoveAndCopyValue(), set remains compact and in stable order after element is removed

Friends And Related Symbol Documentation

◆ TScriptMap

template<typename InKeyType , typename InValueType , typename SetAllocator , typename KeyFuncs >
template<typename , typename >
friend class TScriptMap
friend

Member Data Documentation

◆ bHasIntrusiveUnsetOptionalState

template<typename InKeyType , typename InValueType , typename SetAllocator , typename KeyFuncs >
constexpr bool TMAP< InKeyType, InValueType, SetAllocator, KeyFuncs >::bHasIntrusiveUnsetOptionalState = true
staticconstexpr

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