Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TSpscQueue
Description
As there can be only one consumer, a consumer can safely "peek" the tail of the queue. returns a pointer to the tail if the queue is not empty, nullptr otherwise there's no overload with TOptional as it doesn't support references
| Name | Peek |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/SpscQueue.h |
| Include Path | #include "Containers/SpscQueue.h" |
ElementType * Peek() const