Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TTransactionallySafeSpscQueue
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/TransactionallySafeSpscQueue.h |
| Include Path | #include "Containers/TransactionallySafeSpscQueue.h" |
ElementType * Peek() const