TInlineComponentArray

[TInlineComponentArray](API\Runtime\Engine\GameFramework\TInlineComponentArray) is simply a [TArray](API\Runtime\Core\Containers\TArray) that reserves a fixed amount of space on the stack to try to avoid heap allocation when there are fewer than a specified number of elements expected in the result.

Windows
MacOS
Linux

Inheritance Hierarchy

TArray

TInlineComponentArray

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/Actor.h

Include

#include "GameFramework/Actor.h"

Syntax

template<class T, uint32 NumElements>
class TInlineComponentArray : public TArray< T, TInlineAllocator< NumElements > >

Remarks

TInlineComponentArray is simply a TArray that reserves a fixed amount of space on the stack to try to avoid heap allocation when there are fewer than a specified number of elements expected in the result.

Constructors

Name Description

Public function

TInlineComponentArray()

Public function

TInlineComponentArray

(
    const AActor* Actor,
    bool bIncludeFromChildActors
)

Typedefs

Name

Description

Super

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss