TQueue::Peek

Peeks at the queue's tail item without removing it. To be called only from consumer thread.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Containers/Queue.h"

Syntax

bool Peek
(
    ItemType & OutItem
) const

Remarks

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

To be called only from consumer thread.

Returns

true if an item was returned, false if the queue was empty.

Parameters

Parameter

Description

OutItem

Will hold the peeked at item.

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