Simple queue class built on a std::vector.
#include <nrg_queue.h>
Public Member Functions | |
| Queue (size_t sz) | |
Construct a Queue with initial size sz. | |
| void | push (const T &t) |
Push t onto the back of the queue. | |
| T | pop (void) |
| Remove the head of the queue and return it, don't call this if the queue is empty or all hell will break loose. | |
| void | clear () |
| Clears the queue. | |
| size_t | size () |
| Returns the size of the queue. | |
| bool | empty () |
| Returns true if the queue is empty. | |