TBasicArray

Basic RAII array which can be used without the excessive dependencies needed by [TArray](API\Runtime\Core\Containers\TArray), which needs to be serialisable, have a fixed ABI, have lots of helper algorithms as members, have auto-shrinking, support allocators etc.

Windows
MacOS
Linux

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

Name Description

Public function

TBasicArray()

Public function

TBasicArray

(
    const TBasicArray&
)

Non-copyable for now, but this could be made copyable in future if needed.

Public function

TBasicArray

(
    TBasicArray&& Other
)

Destructors

Name Description

Public function

~TBasicArray()

Functions

Name Description

Public function

int32

 

Emplace

(
    ArgTypes&&... Args
)

Public function

void

 

EmplaceAt

(
    int32 Index,
    ArgTypes&&... Args
)

Public function

T *

 

GetData()

Public function Const

const T *...

 

GetData()

Public function Const

int32

 

Num()

Public function

void

 

RemoveAt

(
    int32 Index,
    int32 NumToRemove
)

Operators

Name Description

Public function

T &

 

operator[]

(
    int32 Index
)

Public function Const

const T &

 

operator[]

(
    int32 Index
)

Public function

TBasicArray ...

 

operator=

(
    const TBasicArray&
)

Public function

TBasicArray ...

 

operator=

(
    TBasicArray&& Other
)

Constants

Name

Description

InitialReservationSize

References

Module

Core

Header

Runtime/Core/Public/Containers/BasicArray.h

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback