Navigation
API > API/Runtime > API/Runtime/Core
Implements a variant of TInlineAllocator with a secondary heap allocator that is allowed to store a pointer to its inline elements. This allows caching a pointer to the elements which avoids any conditional logic in GetAllocation(), but prevents the allocator being trivially relocatable. All UE allocators typically rely on elements being trivially relocatable, so instances of this allocator cannot be used in other containers.
NOTE: instances of this allocator - or containers which use them - are non-trivially-relocatable, but the allocator still expects elements themselves to be trivially-relocatable.
| Name | TNonRelocatableInlineAllocator |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/ContainerAllocationPolicies.h |
| Include Path | #include "Containers/ContainerAllocationPolicies.h" |
Syntax
template<uint32 NumInlineElements>
class TNonRelocatableInlineAllocator
Classes
| Name | Remarks |
|---|---|
| ForElementType |
Enums
Public
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ForAnyElementType | void | Containers/ContainerAllocationPolicies.h | |
| SizeType | int32 | Containers/ContainerAllocationPolicies.h |