data_structures
Functions
max_pq_new.c File Reference
#include "max_pq.h"
+ Include dependency graph for max_pq_new.c:

Go to the source code of this file.

Functions

t_max_pqmax_pq_new (const t_type *type)
 Initializes a new empty priority queue. More...
 

Function Documentation

◆ max_pq_new()

t_max_pq* max_pq_new ( const t_type type)

Initializes a new empty priority queue.

Parameters
typeThe type of items that this queue can hold
Returns
The new priority queue
Note
For this function to work, the datatype in this array must be comparable (i.e. implement the cmp function).

Definition at line 16 of file max_pq_new.c.