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 () |
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
(
const TStaticArray& Other |
Containers/StaticArray.h | ||
constexpr TStaticArray
(
EInPlace, |
Constructs each element with Args. | Containers/StaticArray.h | |
constexpr TStaticArray
(
EPerElement, |
Containers/StaticArray.h | ||
constexpr TStaticArray
(
EInPlace, |
Containers/StaticArray.h |
Class Specializations
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ElementType | InElementType | Containers/StaticArray.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Elements | InElementType | Containers/StaticArray.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
InElementType * begin () |
Containers/StaticArray.h | ||
const InElementType * begin () |
Containers/StaticArray.h | ||
InElementType * end () |
Containers/StaticArray.h | ||
const InElementType * 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 | |
TReversePointerIterator< InElementType > rbegin () |
Containers/StaticArray.h | ||
TReversePointerIterator< const InElementType > rbegin () |
Containers/StaticArray.h | ||
TReversePointerIterator< InElementType > rend () |
Containers/StaticArray.h | ||
TReversePointerIterator< const InElementType > rend () |
Containers/StaticArray.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
InElementType & operator[]
(
uint32 Index |
Accessors. | Containers/StaticArray.h | |
const InElementType & operator[]
(
uint32 Index |
Containers/StaticArray.h | ||
TStaticArray & operator=
(
const TStaticArray& Other |
Containers/StaticArray.h | ||
TStaticArray & operator=
(
TStaticArray&& Other |
Containers/StaticArray.h | ||
bool operator==
(
const TStaticArray& |
Containers/StaticArray.h |