Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Containers
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Containers/BasicArray.h |
| Include | #include "Containers/BasicArray.h" |
Syntax
template<typename T>
class TBasicArray
Remarks
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.
Constructors
| Type | Name | Description | |
|---|---|---|---|
TBasicArray () |
|||
TBasicArray
(
const TBasicArray& |
Non-copyable for now, but this could be made copyable in future if needed. | ||
TBasicArray
(
TBasicArray&& Other |
Destructors
| Type | Name | Description | |
|---|---|---|---|
~TBasicArray () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| int32 | Emplace
(
ArgTypes&&... Args |
||
| void | EmplaceAt
(
int32 Index, |
||
| T * | GetData () |
||
| const T * | GetData () |
||
| bool | IsEmpty () |
||
| int32 | Num () |
||
| void | RemoveAt
(
int32 Index, |
Operators
| Type | Name | Description | |
|---|---|---|---|
| T & | operator[]
(
int32 Index |
||
| const T & | operator[]
(
int32 Index |
||
| TBasicArray & | operator=
(
const TBasicArray& |
||
| TBasicArray & | operator=
(
TBasicArray&& Other |
Constants
| Name | Description |
|---|---|
| InitialReservationSize |