函数
GLibHashTablenew_similar
自:2.72
声明 [源]
GHashTable*
g_hash_table_new_similar (
GHashTable* other_hash_table
)
描述 [源]
创建一个类似于 g_hash_table_new_full() 的新 GHashTable,引用计数为1。
将从 other_hash_table 继承哈希函数、键相等函数、键销毁函数以及值销毁函数。
返回的哈希表将为空;它将不包含来自 other_hash_table 的键或值。
自:2.72
参数
other_hash_table-
类型:
GHashTable另一个
GHashTable。数据由函数的调用者所有。
返回值
类型: GHashTable
一个新的 GHashTable。
| 函数的调用者负责所有数据的拥有权,并负责释放它。 |