Navigation
API > API/Runtime > API/Runtime/Engine
Use this to efficiently allocate a temporary array using MemStack, instead of using TArray and going through the global allocator. Only declare local variable of this struct (i.e. do not "new TTemporaryArray") Remark: The allocated memory lifespan is the same as the TTemporaryArray local variable (it is deallocated when TTemporaryArray goes out of scope).
| Name | TTemporaryArray |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialIRCommon.h |
| Include Path | #include "Materials/MaterialIRCommon.h" |
Syntax
template<typename T>
struct TTemporaryArray : public TArrayView< T >
Inheritance Hierarchy
- TArrayView → TTemporaryArray
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TTemporaryArray
(
int32 Num |
Materials/MaterialIRCommon.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| MemMark | FMemMark | Materials/MaterialIRCommon.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Zero() |
Materials/MaterialIRCommon.h |