An implementation of a fixed-size (power of two only) Ring Buffer. More...
#include <Utils.h>
Public Member Functions | |
| constexpr size_t | Capacity () const noexcept |
| Evaluated at compile time, returns the size of the buffer which is already known. | |
| RingBuffer () noexcept=default | |
| ~RingBuffer () noexcept=default | |
| void | Clear () noexcept |
| bool | Enqueue (const T &element) noexcept |
| bool | Dequeue (T &element) noexcept |
| bool | IsFull () const noexcept |
| bool | IsEmpty () const noexcept |
| size_t | Size () const noexcept |
An implementation of a fixed-size (power of two only) Ring Buffer.
| T | The Buffer's underlying type. |
| buffsize | The buffer size, must be a power of two. |
|
defaultnoexcept |
Here is the caller graph for this function:
|
defaultnoexcept |
Here is the call graph for this function:
|
inlineconstexprnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |