TQueue::Peek

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

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

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

Include

#include "Containers/Queue.h"

Syntax

FElementType * 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