TQueue::Peek

Peeks 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

bool Peek
(
    FElementType & OutItem
) const

Remarks

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

Returns

true if an item was returned, false if the queue was empty. @note To be called only from consumer thread.

Parameters

Parameter

Description

OutItem

Will hold the peeked at item.

See Also