GCC Wikia
Advertisement

このページを編集する際は,編集に関する方針に従ってください.[]

概要[]

引数[]

実装[]

240 /* Allocate a new splay tree, using COMPARE_FN to compare nodes,
241    DELETE_KEY_FN to deallocate keys, and DELETE_VALUE_FN to deallocate
242    values.  Use xmalloc to allocate the splay tree structure, and any
243    nodes added.  */
244 
245 splay_tree 
246 splay_tree_new (splay_tree_compare_fn compare_fn,
247                 splay_tree_delete_key_fn delete_key_fn,
248                 splay_tree_delete_value_fn delete_value_fn)
249 {
250   return (splay_tree_new_with_allocator
251           (compare_fn, delete_key_fn, delete_value_fn,
252            splay_tree_xmalloc_allocate, splay_tree_xmalloc_deallocate, 0));
253 }



リンク元

Advertisement