TCircularQueue::Peek

Returns the oldest item in the queue without removing it.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

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

Include

#include "Containers/CircularQueue.h"

Syntax

const FElementType * Peek() const

Remarks

Returns the oldest item in the queue without removing it.

Returns

an FElementType pointer if an item has been returned, nullptr if the queue was empty. @note To be called only from consumer thread. @note The return value is only valid until Dequeue, Empty, or the destructor has been called.