TArrayBuilder

Template for fluent array builders.

Windows
MacOS
Linux

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.

References

Module

Core

Header

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