156 void (*print_element)(
void const*));
bool Queue_dequeue(Queue *queue)
Removes the front element from a queue.
bool Queue_enqueue(Queue *queue, void const *elem)
Adds an element to the end of a queue.
size_t Queue_capacity(Queue *queue)
Queries the capacity of a queue.
Queue * Queue_create(size_t elem_sz)
Creates an empty, heap-allocated queue.
bool Queue_empty(Queue *queue)
Determines whether a queue is empty.
struct queue Queue
Definition: queue.h:61
bool Queue_front(Queue *queue, void *elem)
Accesses the front element of a queue.
void Queue_destroy(Queue *queue)
Destroys a heap-allocated queue.
void Queue_print(Queue *queue, char const *sep, bool vertical, void(*print_element)(void const *))
Prints a string representation of the elements in a queue to the standard output.
size_t Queue_size(Queue *queue)
Queries the size of a queue.