C++ Channel
|
A FIFO queue storage using std::queue. More...
#include <storage.hpp>
Public Member Functions | |
queue_storage (std::size_t) | |
Constructs the queue storage (parameter ignored, required for interface compatibility). | |
template<typename Type > | |
void | push_back (Type &&value) |
Adds an element to the back of the queue. | |
void | pop_front (T &out) |
Removes the front element from the queue and moves it to the output. | |
NODISCARD std::size_t | size () const noexcept |
Returns the number of elements currently stored. | |
A FIFO queue storage using std::queue.
T | Type of elements stored. |
|
inlineexplicit |
Constructs the queue storage (parameter ignored, required for interface compatibility).
Removes the front element from the queue and moves it to the output.
out | Reference to the variable where the front element will be moved. |
|
inline |
Adds an element to the back of the queue.
Type | Type of the element to insert. |
value | The value to insert (perfect forwarded). |
|
inlinenoexcept |
Returns the number of elements currently stored.