Navigation
API > API/Runtime > API/Runtime/Core
Basic RAII array which can be used without the excessive dependencies needed by TArray, which needs to be serialisable, have a fixed ABI, have lots of helper algorithms as members, have auto-shrinking, support allocators etc.
| Name | TBasicArray |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/BasicArray.h |
| Include Path | #include "Containers/BasicArray.h" |
Syntax
template<typename T>
class TBasicArray
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TBasicArray
(
const TBasicArray& |
Non-copyable for now, but this could be made copyable in future if needed. | Containers/BasicArray.h | |
TBasicArray () |
Containers/BasicArray.h | ||
TBasicArray
(
TBasicArray&& Other |
Containers/BasicArray.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~TBasicArray() |
Containers/BasicArray.h |
Structs
| Name | Remarks |
|---|---|
| FData |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| InitialReservationSize | int32 | Containers/BasicArray.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Data | FData * | Containers/BasicArray.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 Emplace
(
ArgTypes&&... Args |
Containers/BasicArray.h | ||
void EmplaceAt
(
int32 Index, |
Containers/BasicArray.h | ||
const T * GetData () |
Containers/BasicArray.h | ||
T * GetData () |
Containers/BasicArray.h | ||
bool IsEmpty() |
Containers/BasicArray.h | ||
int32 Num() |
Containers/BasicArray.h | ||
void RemoveAt
(
int32 Index, |
Containers/BasicArray.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static int32 ApplyGrowthFactor
(
int32 CurrentNum |
Containers/BasicArray.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
T & operator[]
(
int32 Index |
Containers/BasicArray.h | ||
const T & operator[]
(
int32 Index |
Containers/BasicArray.h | ||
TBasicArray & operator=
(
const TBasicArray& |
Containers/BasicArray.h | ||
TBasicArray & operator=
(
TBasicArray&& Other |
Containers/BasicArray.h |