Navigation
API > API/Runtime > API/Runtime/Core
An array with a static number of elements.
| Name | TStaticArray |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/StaticArray.h |
| Include Path | #include "Containers/StaticArray.h" |
Syntax
template<typename InElementType, uint32 NumElements, uint32 Alignment>
class TStaticArray
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
constexpr TStaticArray
(
const TStaticArray& Other |
Containers/StaticArray.h | ||
constexpr TStaticArray () |
Containers/StaticArray.h | ||
constexpr TStaticArray
(
ArgTypes&&... Args |
Directly initializes the array with the provided values. | Containers/StaticArray.h | |
constexpr TStaticArray
(
TStaticArray&& Other |
Containers/StaticArray.h | ||
constexpr TStaticArray
(
EInPlace, |
Constructs each element with Args. | Containers/StaticArray.h |
Structs
| Name | Remarks |
|---|---|
| FRangedForIterator | |
| TArrayStorage | |
| TArrayStorageElementAligned |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ElementType | InElementType | Containers/StaticArray.h | |
| RangedForConstIteratorType | FRangedForIterator< const TArrayStorageElementAligned > | Containers/StaticArray.h | |
| RangedForConstReverseIteratorType | FRangedForIterator< const TArrayStorageElementAligned, true > | Containers/StaticArray.h | |
| RangedForIteratorType | FRangedForIterator< TArrayStorageElementAligned > | Containers/StaticArray.h | |
| RangedForReverseIteratorType | FRangedForIterator< TArrayStorageElementAligned, true > | Containers/StaticArray.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Storage | TArrayStorage | Containers/StaticArray.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
RangedForIteratorType constexpr begin () |
STL-like iterators to enable range-based for loop support. | Containers/StaticArray.h | |
RangedForConstIteratorType constexpr begin () |
Containers/StaticArray.h | ||
RangedForIteratorType constexpr end () |
Containers/StaticArray.h | ||
RangedForConstIteratorType constexpr end () |
Containers/StaticArray.h | ||
InElementType * GetData () |
A pointer to the first element of the array | Containers/StaticArray.h | |
const InElementType * GetData () |
Containers/StaticArray.h | ||
bool IsEmpty () |
Returns true if the array is empty and contains no elements. | Containers/StaticArray.h | |
int32 Num() |
The number of elements in the array. | Containers/StaticArray.h | |
RangedForReverseIteratorType constexpr rbegin () |
Containers/StaticArray.h | ||
RangedForConstReverseIteratorType constexpr rbegin () |
Containers/StaticArray.h | ||
RangedForReverseIteratorType constexpr rend () |
Containers/StaticArray.h | ||
RangedForConstReverseIteratorType constexpr rend () |
Containers/StaticArray.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
const TStaticArray& B |
Containers/StaticArray.h | ||
const InElementType & operator[]
(
uint32 Index |
Containers/StaticArray.h | ||
InElementType & operator[]
(
uint32 Index |
Accessors. | Containers/StaticArray.h | |
TStaticArray & operator=
(
TStaticArray&& Other |
Containers/StaticArray.h | ||
TStaticArray & operator=
(
const TStaticArray& Other |
Containers/StaticArray.h |