TArrayBuilder

Template for fluent array builders.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

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

Include

#include "Containers/ArrayBuilder.h"

Syntax

template<typename ElementType, typename Allocator>
class TArrayBuilder

Remarks

Template for fluent array builders.

Constructors

Name Description

Public function

TArrayBuilder()

Default constructor.

Public function

TArrayBuilder

(
    const TArray< ElementType, OtherAll...
)

Creates and initializes an array builder from an array of items.

Functions

Name Description

Public function

TArrayBuilde...

 

Add

(
    const ElementType& Item
)

Adds an item.

Public function

TArrayBuilde...

 

AddUnique

(
    const ElementType& Item
)

Adds an unique item.

Public function

TArrayBuilde...

 

Append

(
    const TArray< ElementType, OtherAll...
)

Appends an array of items.

Public function

TArray< Elem...

 

Build()

Builds the array as configured.

Operators

Name Description

Public function

 

operator TArray< ElementType, Allocator >()

Implicit conversion operator to build the array as configured.