TNonRelocatableInlineAllocator

Implements a variant of [TInlineAllocator](API\Runtime\Core\Containers\TInlineAllocator) with a secondary heap allocator that is allowed to store a pointer to its inline elements.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/ContainerAllocationPolicies.h

Include

#include "Containers/ContainerAllocationPolicies.h"

Syntax

template<uint32 NumInlineElements>
class TNonRelocatableInlineAllocator

Remarks

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 UE4 allocators typically rely on elements being trivially relocatable, so instances of this allocator cannot be used in other containers.

Classes

Name

Description

Public class

ForElementType

Typedefs

Name

Description

ForAnyElementType

SizeType

Constants

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss