TStaticArray

An array with a static number of elements.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/StaticArray.h

Include

#include "Containers/StaticArray.h"

Syntax

template<typename InElementType, 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 InElementType& DefaultElemen...
)

Public function

TStaticArray

(
    TStaticArray && Other
)

Public function

TStaticArray

(
    const TStaticArray & Other
)

Functions

Name Description

Public function

RangedForIte ...

 

begin()

STL-like iterators to enable range-based for loop support.

Public function Const

RangedForCon ...

 

begin()

Public function

RangedForIte ...

 

end()

Public function Const

RangedForCon ...

 

end()

Public function

InElementTyp...

 

GetData()

A pointer to the first element of the array

Public function Const

const InElem...

 

GetData()

Public function Const

int32

 

Num()

The number of elements in the array.

Operators

Name Description

Public function

InElementTyp...

 

operator[]

(
    uint32 Index
)

Accessors.

Public function Const

const InElem...

 

operator[]

(
    uint32 Index
)

Public function

TStaticArray ...

 

operator=

(
    TStaticArray && Other
)

Public function

TStaticArray ...

 

operator=

(
    const TStaticArray & Other
)

Classes

Name

Description

Public struct

FRangedForIterator

Typedefs

Select Skin
Light
Dark

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