Esempio n. 1
0
/**
 * Tests if the first hash_set is greater than or equal to the second hash_set.
 */
bool_t hash_set_greater_equal(const hash_set_t* cphset_first, const hash_set_t* cphset_second)
{
    assert(cphset_first != NULL);
    assert(cphset_second != NULL);

    return _hashtable_greater_equal(&cphset_first->_t_hashtable, &cphset_second->_t_hashtable);
}
Esempio n. 2
0
/**
 * Tests if the first hash_multimap is greater than or equal to the second hash_multimap.
 */
bool_t hash_multimap_greater_equal(const hash_multimap_t* cphmmap_first, const hash_multimap_t* cphmmap_second)
{
    assert(cphmmap_first != NULL);
    assert(cphmmap_second != NULL);
    assert(_pair_is_inited(&cphmmap_first->_pair_temp));
    assert(_pair_is_inited(&cphmmap_second->_pair_temp));
    assert(_hash_multimap_same_pair_type_ex(&cphmmap_first->_pair_temp, &cphmmap_second->_pair_temp));

    return _hashtable_greater_equal(&cphmmap_first->_t_hashtable, &cphmmap_second->_t_hashtable);
}