ForAnyElementType

Windows
MacOS
Linux

Inheritance Hierarchy

TAlignedHeapAllocator::ForAnyElementType

TAlignedHeapAllocator::ForElementType

References

Module

Core

Header

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

Include

#include "Containers/ContainerAllocationPolicies.h"

Syntax

class ForAnyElementType

Constructors

Name Description

Public function

ForAnyElementType()

Default constructor.

Destructors

Name Description

Public function

~ForAnyElementType()

Destructor.

Functions

Name Description

Public function Const

SizeType

 

CalculateSlackGrow

(
    SizeType NumElements,
    SizeType NumAllocatedElements,
    SIZE_T NumBytesPerElement
)

Public function Const

SizeType

 

CalculateSlackReserve

(
    SizeType NumElements,
    SIZE_T NumBytesPerElement
)

Public function Const

SizeType

 

CalculateSlackShrink

(
    SizeType NumElements,
    SizeType NumAllocatedElements,
    SIZE_T NumBytesPerElement
)

Public function Const

SIZE_T

 

GetAllocatedSize

(
    SizeType NumAllocatedElements,
    SIZE_T NumBytesPerElement
)

Public function Const

FScriptConta...

 

GetAllocation()

Public function Const

SizeType

 

GetInitialCapacity()

Public function Const

bool

 

HasAllocation()

Public function

void

 

MoveToEmpty

(
    ForAnyElementType& Other
)

Moves the state of another allocator into this one.

Public function

void

 

ResizeAllocation

(
    SizeType PreviousNumElements,
    SizeType NumElements,
    SIZE_T NumBytesPerElement
)

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