TArray::Last

Syntax

const ElementType & Last
(
    int32 IndexFromTheEnd
) const

Remarks

Returns n-th last element from the array.

Const version of the above.

Returns

Reference to n-th last element from the array.

Parameters

Parameter

Description

IndexFromTheEnd

(Optional) Index from the end of array (default = 0).

References

Module

Core

Header

Runtime/Core/Public/Containers/Array.h