コード例 #1
0
/**
 * Get the maximum number of elements int the hash_multimap.
 */
size_t hash_multimap_max_size(const hash_multimap_t* cphmmap_map)
{
    assert(cphmmap_map != NULL);
    assert(_pair_is_inited(&cphmmap_map->_pair_temp));

    return _hashtable_max_size(&cphmmap_map->_t_hashtable);
}
コード例 #2
0
ファイル: cstl_hash_set.c プロジェクト: cffyh/libcstl
/**
 * Get the maximum number of elements int the hash_set.
 */
size_t hash_set_max_size(const hash_set_t* cphset_set)
{
    assert(cphset_set != NULL);

    return _hashtable_max_size(&cphset_set->_t_hashtable);
}