RealDocs

16 results for "TArray" in function

function
TArray::Add Core

Appends an element to the end of the array and returns its index.

function
TArray::AddUnique Core

Adds an element only if it is not already present in the array.

function
TArray::Contains Core

Returns true if the array contains at least one element equal to Item.

function
TArray::ContainsByPredicate Core

Returns true if any element satisfies the predicate.

function
TArray::Emplace Core

Constructs a new element in-place at the end of the array using the provided constructor arguments.

function
TArray::Find Core

Searches for Item using operator== and returns true if found, setting Index to its position.

function
TArray::FindByPredicate Core

Returns a pointer to the first element for which Pred returns true, or nullptr if none match.

function
TArray::IsEmpty Core

Returns true if the array contains no elements.

function
TArray::Num Core

Returns the number of elements currently in the array.

function
TArray::Remove Core

Removes all elements equal to Item and returns the number of elements removed.

function
TArray::RemoveAll Core

Removes all elements for which the predicate returns true, preserving order of remaining elements.

function
TArray::Reserve Core

Pre-allocates memory for at least Number elements without changing the logical size.

function
TArray::Reset Core

Removes all elements (calls destructors) but retains allocated memory for reuse.

function
TArray::Sort Core

Sorts the array in-place using an introspective sort (introsort).

function
TArray::StableSort Core

Sorts the array in-place and guarantees that equal elements retain their original relative order.

function
AActor::GetComponentsByClass Engine

Returns all components of the given class attached to this actor.