ForElementType

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Containers/ContainerAllocationPolicies.h"

Syntax

template<typename ElementType>
class ForElementType

Constructors

Name Description

Public function

ForElementType()

Default constructor.

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

ElementType ...

 

GetAllocation()

Public function Const

SizeType

 

GetInitialCapacity()

Public function Const

bool

 

HasAllocation()

Public function

void

 

MoveToEmpty

(
    ForElementType& 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