TArray::Top

Returns the top element, i.e. the last one. Const version of the above.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

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

Include

#include "Containers/Array.h"

Syntax

const ElementType & Top() const

Remarks

Returns the top element, i.e. the last one.

Const version of the above.

Returns

Reference to the top element.

See Also