UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TNonRelocatableInlineAllocator< NumInlineElements > Class Template Reference

#include <ContainerAllocationPolicies.h>

Classes

class  ForElementType
 

Public Types

enum  { NeedsElementType = true }
 
enum  { RequireRangeCheck = true }
 
using SizeType = int32
 
typedef void ForAnyElementType
 

Detailed Description

template<uint32 NumInlineElements>
class TNonRelocatableInlineAllocator< NumInlineElements >

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.

Member Typedef Documentation

◆ ForAnyElementType

template<uint32 NumInlineElements>
typedef void TNonRelocatableInlineAllocator< NumInlineElements >::ForAnyElementType

◆ SizeType

template<uint32 NumInlineElements>
using TNonRelocatableInlineAllocator< NumInlineElements >::SizeType = int32

Member Enumeration Documentation

◆ anonymous enum

template<uint32 NumInlineElements>
anonymous enum
Enumerator
NeedsElementType 

◆ anonymous enum

template<uint32 NumInlineElements>
anonymous enum
Enumerator
RequireRangeCheck 

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