A simple queue implementation based on a std::array This class is supported for GPU execution. More...
Public Member Functions | |
| constexpr bool | empty () const |
| Check if the queue is empty. | |
| constexpr const value_type & | front () const |
| Return the first element in the queue. | |
| constexpr value_type | pop () |
| Remove the first element in the queue and return it. | |
| constexpr void | push (const value_type &v) |
| Push an element in the queue. | |
A simple queue implementation based on a std::array This class is supported for GPU execution.
|
constexpr |
Push an element in the queue.
| v | Element to be inserted |
|
constexpr |
Return the first element in the queue.
|
constexpr |
Remove the first element in the queue and return it.
|
constexpr |
Check if the queue is empty.