| | |
| | | void *hashtable_remove(hashtable_t *hashtable, int key); |
| | | void hashtable_removeall(hashtable_t *hashtable); |
| | | |
| | | /** |
| | | * 遍历hash_table |
| | | * @demo |
| | | * hashtable_foreach(&hashtable, [&](int key, void * value){ |
| | | * printf("%d, %p\n", key, value); |
| | | * }); |
| | | * |
| | | */ |
| | | void hashtable_foreach(hashtable_t *hashtable, std::function<void(int, void *)> cb); |
| | | |
| | | void hashtable_foreach(hashtable_t *hashtable, hashtable_foreach_cb cb); |
| | | |
| | | void hashtable_printall(hashtable_t *hashtable); |
| | | // void hashtable_printall(hashtable_t *hashtable); |
| | | |
| | | int hashtable_alloc_key(hashtable_t *hashtable); |
| | | |