TArray::Top

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

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

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