A ring buffer queue backed by a power‐of‐two sized array that grows on overflow. Not thread‐safe.
Synopsis
Declared in <folly/container/DynamicRingQueue.h>
template<typename T>
class DynamicRingQueue;
Member Functions
Name |
Description |
|
Constructors |
|
Destroys the queue and releases its buffer. |
Assignment operators |
|
Returns the number of elements the queue can hold without growing. |
|
Returns whether the queue holds no elements. |
|
Returns the maximum capacity the queue can grow to. |
|
Removes and returns the element at the front of the queue. |
|
Appends an element to the back of the queue, growing if full. |
|
Returns the number of elements currently stored in the queue. |
Static Data Members
Name |
Description |
The maximum capacity the queue can grow to. |
Friends
Name |
Description |
Test helper granting access to DynamicRingQueue internals. |
Created with MrDocs