Navigation
API > API/Runtime > API/Runtime/Core
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
class PREPROCESSOR_JOIN
(
UE_TMAP_PREFIX, |
The base class of maps from keys to values. | ||
struct PREPROCESSOR_JOIN
(
PREPROCESSOR_JOIN(UE_TMAP_PREFIX, Map), |
PREPROCESSOR_JOIN(UE_TMAP_PREFIX, MapBase)
Description
The base class of maps from keys to values. Implemented using a TSet of key-value pairs with a custom KeyFuncs, with the same O(1) addition, removal, and finding.
The ByHash() functions are somewhat dangerous but particularly useful in two scenarios: Heterogeneous lookup to avoid creating expensive keys like FString when looking up by const TCHAR*. You must ensure the hash is calculated in the same way as ElementType is hashed. If possible put both ComparableKey and ElementType hash functions next to each other in the same header to avoid bugs when the ElementType hash function is changed. Reducing contention around hash tables protected by a lock. It is often important to incur the cache misses of reading key data and doing the hashing before acquiring the lock.
| Name | PREPROCESSOR_JOIN |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Map.h.inl |
| Include Path | #include "Containers/Map.h.inl" |
template<typename KeyType, typename ValueType, typename SetAllocator, typename KeyFuncs>
class PREPROCESSOR_JOIN
(
UE_TMAP_PREFIX,
MapBase
)
PREPROCESSOR_JOIN(PREPROCESSOR_JOIN(UE_TMAP_PREFIX, Map), PrivateFriend)
| Name | PREPROCESSOR_JOIN |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Map.h.inl |
| Include Path | #include "Containers/Map.h.inl" |
struct PREPROCESSOR_JOIN
(
PREPROCESSOR_JOIN),
PrivateFriend
)