TQueue::Peek

Peek at the queue's tail item without removing it.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Containers/Queue.h"

Syntax

ItemType * Peek()

Remarks

Peek at the queue's tail item without removing it.

This version of Peek allows peeking at a queue of items that do not allow copying, such as TUniquePtr.

Returns

Pointer to the item, or nullptr if queue is empty

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