TArray::Top

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

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Containers/Array.h"

Syntax

ElementType & Top()

Remarks

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

Returns

Reference to the top element.

See Also

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss