![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <Allocator.h>
Inheritance diagram for uLang::TDefaultElementAllocator< InRawAllocatorType, AllocatorArgsType >::ForAnyElementType:A class that may be used when NeedsElementType=false is specified. If NeedsElementType=true, then this must be present but will not be used, and so can simply be a typedef to void
|
inline |
Default constructor.
|
inline |
Constructor with given allocator
|
inline |
|
inline |
Destructor.
|
inline |
Calculates the amount of slack to allocate for an array that has just grown to a given number of elements.
| NumElements | - The number of elements to allocate space for. |
| CurrentNumSlackElements | - The current number of elements allocated. |
| NumBytesPerElement | - The number of bytes/element. |
|
inline |
Calculates the amount of slack to allocate for an array that has just grown or shrunk to a given number of elements.
| NumElements | - The number of elements to allocate space for. |
| CurrentNumSlackElements | - The current number of elements allocated. |
| NumBytesPerElement | - The number of bytes/element. |
|
inline |
Calculates the amount of slack to allocate for an array that has just shrunk to a given number of elements.
| NumElements | - The number of elements to allocate space for. |
| CurrentNumSlackElements | - The current number of elements allocated. |
| NumBytesPerElement | - The number of bytes/element. |
|
inline |
|
inline |
Accesses the container's current data.
|
inline |
Accesses the container's raw allocator.
|
inline |
|
inline |
Moves the state of another allocator into this one. Assumes that the allocator is currently empty, i.e. memory may be allocated but any existing elements have already been destructed (if necessary).
| Other | - The allocator to move the state from. This allocator should be left in a valid empty state. |
|
inline |
Resizes the container's allocation.
| PreviousNumElements | - The number of elements that were stored in the previous allocation. |
| NumElements | - The number of elements to allocate space for. |
| NumBytesPerElement | - The number of bytes/element. |