TStaticArray

An array with a static number of elements.

Windows
MacOS
Linux

Inheritance Hierarchy

Syntax

template<typename TElement, uint32 NumElements, uint32 Alignment>
class TStaticArray

Remarks

An array with a static number of elements.

Constructors

Name Description

Public function

TStaticArray()

Public function

TStaticArray

(
    const TElement& DefaultElement
)

Public function

TStaticArray

(
    TStaticArray&& Other
)

Public function

TStaticArray

(
    const TStaticArray& Other
)

Functions

Name Description

Public function Const

int32

 

Num()

The number of elements in the array.

Operators

Name Description

Public function

TElement &

 

operator[]

(
    uint32 Index
)

Accessors.

Public function Const

const TEleme...

 

operator[]

(
    uint32 Index
)

Public function

TStaticArray...

 

operator=

(
    TStaticArray&& Other
)

Public function

TStaticArray...

 

operator=

(
    const TStaticArray& Other
)

References

Module

Core

Header

Runtime/Core/Public/Containers/StaticArray.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