cp_hashtable_set_min_fill_factor(3)
| cp_hashtable(3) | libcprops - cp_hashtable | cp_hashtable(3) |
NAME
cp_hashtable_set_min_fill_factor, cp_hashtable_set_max_fill_factor - set minimal/maximal fill factors for table resizing
SYNOPSIS
#include <cprops/hashtable.h>
int cp_hashtable_set_min_fill_factor(cp_hashtable
*table, int factor);
int cp_hashtable_set_max_fill_factor(cp_hashtable *table, int
factor);
DESCRIPTION
factor is the fill factor in percent beyond which a table resize will be triggered upon entry removal (cp_hashtable_set_min_fill_factor) or insertion (cp_hashtable_set_max_fill_factor). The default values are 5 and 70 respectively.
Resizing may be disabled completely by setting the COLLECTION_MODE_NORESIZE bit on a table's mode.
RETURN VALUE
cp_hashtable_set_max_fill_factor and cp_hashtable_set_min_fill_factor return 0 on success or -1 if a locking error occurs.
SEE ALSO
| OCTOBER 2005 | libcprops.0.0.3 |
