Memory-efficient unbounded queue implementation for actor message passing. More...
#include <vector>
Go to the source code of this file.
Classes | |
struct | NNet::NActors::TUnboundedVectorQueue< T > |
Unbounded queue with automatic capacity growth. More... |
Memory-efficient unbounded queue implementation for actor message passing.
This file contains a queue implementation that avoids the memory allocations/deallocations of std::queue (which uses std::deque). The queue uses a single vector with power-of-two sizing and bitwise operations for fast indexing, growing only when necessary.