/** * Inserts an range of unique element into a hash_set. */ void hash_set_insert_range(hash_set_t* phset_set, iterator_t it_begin, iterator_t it_end) { assert(phset_set != NULL); assert(iterator_equal(it_begin, it_end) || _iterator_before(it_begin, it_end)); _hashtable_insert_unique_range(&phset_set->_t_hashtable, it_begin, it_end); }
/** * Initialize hashtable container with specific range. */ void _hashtable_init_copy_unique_range( _hashtable_t* pt_dest, iterator_t it_begin, iterator_t it_end, size_t t_bucketcount, ufun_t ufun_hash, bfun_t bfun_compare) { assert(pt_dest != NULL); assert(_hashtable_is_created(pt_dest)); assert(_hashtable_same_iterator_type(pt_dest, it_begin)); assert(_hashtable_same_iterator_type(pt_dest, it_end)); assert(iterator_equal(it_begin, it_end) || _iterator_before(it_begin, it_end)); _hashtable_init(pt_dest, t_bucketcount, ufun_hash, bfun_compare); _hashtable_insert_unique_range(pt_dest, it_begin, it_end); }