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

Go to the source code of this file.

Functions

t_hashsethashset_new (const t_type *type)
 Initializes a new empty set. More...
 

Function Documentation

◆ hashset_new()

t_hashset* hashset_new ( const t_type type)

Initializes a new empty set.

Parameters
typeThe type of items that this set can hold
Returns
The new hashset
Note
For this function to work, the type must be hashable (i.e. implement the hash function).

Definition at line 16 of file hashset_new.c.