queue_is_empty()

Test whether the specified queue is empty.

Synopsis:

#include <hnm/queue.h>
 
bool queue_is_empty(const queue_Queue *queue)

Arguments:

queue

The queue whose cardinality will be evaluated.

Library:

libhnm

Description:

The queue_is_empty() function checks the cardinality of the specified queue and reports success if it evaluates to zero.

Returns:

true if there are no elements in the specified queue; false otherwise.