![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
A c-style array of objects with non-shipping bounds checking. More...
#include <UncheckedArray.h>
Public Types | |
| using | ElementType = T |
Public Member Functions | |
| TCArray () | |
| int32 | Num () const |
| int32 | Max () const |
| bool | IsEmpty () const |
| bool | IsFull () const |
| ElementType & | operator[] (const int32 Index) |
| const ElementType & | operator[] (const int32 Index) const |
| void | SetNum (const int32 InNum) |
| Set the number of elements in the array. | |
| void | Reset () |
| Set the number of elements to 0. | |
| void | Empty () |
| Set the number of elements to 0. | |
| int32 | Add () |
| Increase the size of the array without re-initializing the new element. | |
| int32 | AddUninitialized () |
| Increase the size of the array without re-initializing the new element. | |
| int32 | Add (const ElementType &V) |
| Copy the element to the end of the array. | |
| int32 | Add (ElementType &&V) |
| Move the element to the end of the array. | |
| int32 | Emplace (ElementType &&V) |
| Move the element to the end of the array. | |
| void | RemoveAt (const int32 Index) |
| Remove the element at the specified index Moves all higher elements down to fill the gap. | |
| void | RemoveAtSwap (const int32 Index) |
| Remove the element at the specified index Moves the last element into the gap. | |
| ElementType * | GetData () |
| const ElementType * | GetData () const |
| ElementType * | begin () |
| const ElementType * | begin () const |
| ElementType * | end () |
| const ElementType * | end () const |
Static Public Member Functions | |
| static TCArray< T, N > | MakeFull () |
| static TCArray< T, N > | MakeEmpty () |
Static Public Attributes | |
| static const int32 | MaxElements = N |
A c-style array of objects with non-shipping bounds checking.
This behaves exactly like a C-style array, although it also keeps track of the number of elements in the array. This element count is artficial - all elements in the array are default constructed and will not be destructed until the array itself is destroyed.
| using Chaos::TCArray< T, N >::ElementType = T |
|
inline |
|
inline |
Increase the size of the array without re-initializing the new element.
|
inline |
Copy the element to the end of the array.
|
inline |
Move the element to the end of the array.
|
inline |
Increase the size of the array without re-initializing the new element.
|
inline |
|
inline |
|
inline |
Move the element to the end of the array.
|
inline |
Set the number of elements to 0.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Remove the element at the specified index Moves all higher elements down to fill the gap.
|
inline |
Remove the element at the specified index Moves the last element into the gap.
|
inline |
Set the number of elements to 0.
|
inline |
Set the number of elements in the array.
|
static |