void multimap_clear(multimap_t* pt_multimap) { assert(pt_multimap != NULL); #ifdef CSTL_MULTIMAP_AVL_TREE _avl_tree_clear(_GET_MULTIMAP_AVL_TREE(pt_multimap)); #else _rb_tree_clear(_GET_MULTIMAP_RB_TREE(pt_multimap)); #endif }
/** * Erases all the elements of an multiset. */ void multiset_clear(multiset_t* pmset_mset) { assert(pmset_mset != NULL); #ifdef CSTL_MULTISET_AVL_TREE _avl_tree_clear(&pmset_mset->_t_tree); #else _rb_tree_clear(&pmset_mset->_t_tree); #endif }
/** * Erases all the elements of an set. */ void set_clear(set_t* pset_set) { assert(pset_set != NULL); #ifdef CSTL_SET_AVL_TREE _avl_tree_clear(&pset_set->_t_tree); #else _rb_tree_clear(&pset_set->_t_tree); #endif }
/** * Erases all the elements of an map. */ void map_clear(map_t* pmap_map) { assert(pmap_map != NULL); assert(_pair_is_inited(&pmap_map->_pair_temp)); #ifdef CSTL_MAP_AVL_TREE _avl_tree_clear(&pmap_map->_t_tree); #else _rb_tree_clear(&pmap_map->_t_tree); #endif }