TQueue::Enqueue

Adds an item to the head of the queue.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Containers/Queue.h"

Syntax

bool Enqueue
(
    ItemType && Item
)

Remarks

Adds an item to the head of the queue.

Returns

true if the item was added, false otherwise. @note To be called only from producer thread(s).

Parameters

Parameter

Description

Item

The item to add.

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