Example #1
0
/**
 * Tests if the two hash_set are not equal.
 */
bool_t hash_set_not_equal(const hash_set_t* cphset_first, const hash_set_t* cphset_second)
{
    assert(cphset_first != NULL);
    assert(cphset_second != NULL);

    return _hashtable_not_equal(&cphset_first->_t_hashtable, &cphset_second->_t_hashtable);
}
Example #2
0
/**
 * Tests if the two hash_multimap are not equal.
 */
bool_t hash_multimap_not_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));

    if (cphmmap_first->_bfun_keycompare != cphmmap_second->_bfun_keycompare) {
        return true;
    }

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