Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
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 UE4 allocators typically rely on elements being trivially relocatable, so instances of this allocator cannot be used in other containers.

Definition at line 794 of file ContainerAllocationPolicies.h.

Member Typedef Documentation

◆ ForAnyElementType

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

Definition at line 934 of file ContainerAllocationPolicies.h.

◆ SizeType

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

Definition at line 797 of file ContainerAllocationPolicies.h.

Member Enumeration Documentation

◆ anonymous enum

template<uint32 NumInlineElements>
anonymous enum
Enumerator
NeedsElementType 

Definition at line 799 of file ContainerAllocationPolicies.h.

◆ anonymous enum

template<uint32 NumInlineElements>
anonymous enum
Enumerator
RequireRangeCheck 

Definition at line 800 of file ContainerAllocationPolicies.h.


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