50 results for "array"
The primary dynamic array container in Unreal Engine, equivalent to `std::vector`.
Blueprint function library exposing generic array operations (add, remove, shuffle, sort, search, and more) that work against any wildcard array type.
Stores the number of elements the array can hold before a reallocation is needed.
Stores the number of elements currently held in the array.
Appends an item to the end of an array and returns the index of the newly added element.
Adds an item to the array only if an equal item isn't already present, returning the index of the item.
Appends all elements of one array onto the end of another array in place.
Removes all elements from an array, leaving it empty.
Returns true if the array contains at least one instance of a value.
Returns the index of the first instance of a value in an array, or -1 if it isn't found.
Returns a copy of the array element at the given index via an output parameter.
Checks whether two arrays are memberwise identical — same length and equal elements at every index, in order.
Inserts an item into an array at the given index, shifting later elements up by one.
Returns true if the array has no elements.
Returns true if the array has at least one element.
Returns true if the given index is within bounds for the array — greater than or equal to zero and less than its length.
Returns the index of the last element in an array.
Returns the number of elements in an array.
Picks a random element from an array using the global random stream and returns both the value and its index.
Picks a random element from an array using a caller-supplied FRandomStream, producing reproducible results for a given seed.
Removes the element at the given index from an array, shifting later elements down by one.
Removes all instances of a value from an array and reports whether anything was removed.
Resizes an array to the given size, truncating extra elements or appending default-constructed ones as needed.
Reverses the order of the elements in an array, in place.
Assigns a value to the array element at the given index, optionally growing the array to fit.
Randomizes the order of the elements in an array in place using the engine's global random stream.
Randomizes the order of the elements in an array in place, drawing randomness from the given FRandomStream for deterministic results.
Swaps the elements at two indices in an array.
Appends an element to the end of the array and returns its index.
Appends Count new elements at the end of the array, each default-constructed via DefaultConstructItems.
Grows the array by Count elements without constructing them, returning the index of the first new slot.
Adds an element only if it is not already present in the array.
Appends Count new elements at the end of the array, zero-initialising their memory via FMemory::Memzero.
The allocator object responsible for managing the raw memory backing the array.
Appends all elements from Source to the end of this array in a single allocation.
A static method that feeds the element type's layout descriptor into a SHA1 hash.
Serializes the entire array as a raw memory blob during loading, bypassing per-element serialization for significant performance gains.
Asserts that the given address does not point into the array's current backing buffer.
Asserts (in Debug/Development builds only) that ArrayNum >= 0 and ArrayMax >= ArrayNum.
Returns true if the array contains at least one element equal to Item.
Returns true if any element satisfies the predicate.
Reconstructs a live TArray from a frozen (WriteMemoryImage) binary representation by placement-constructing a new TArray at Dst and copying element data through the allocator's CopyUnfrozen path.
Reports the array's current and peak memory usage to an accounting archive by calling Ar.
Constructs a new element in-place at the end of the array using the provided constructor arguments.
Constructs a new element in-place at the given index, shifting all subsequent elements right by one.
Destructs all elements and sets Num to 0.
Returns a new array containing only the actors from TargetArray that are instances of FilterClass.
Searches for Item using operator== and returns true if found, setting Index to its position.
Returns a pointer to the first element for which Pred returns true, or nullptr if none match.
Searches a TArray of UObject pointers for the first element whose runtime class matches (via IsA) the template parameter SearchType.