コード例 #1
0
ファイル: cstl_hash_set.c プロジェクト: cffyh/libcstl
/**
 * Tests if the first hash_set is greater than the second hash_set.
 */
bool_t hash_set_greater(const hash_set_t* cphset_first, const hash_set_t* cphset_second)
{
    assert(cphset_first != NULL);
    assert(cphset_second != NULL);

    return _hashtable_greater(&cphset_first->_t_hashtable, &cphset_second->_t_hashtable);
}
コード例 #2
0
/**
 * Tests if the first hash_multimap is greater than the second hash_multimap.
 */
bool_t hash_multimap_greater(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(&cphmmap_first->_t_hashtable, &cphmmap_second->_t_hashtable);
}
コード例 #3
0
ファイル: cstl_hashtable.c プロジェクト: astrotycoon/libcstl
/**
 * Tests if the first rb tree is greater than or equal to the second rb tree.
 */
bool_t _hashtable_greater_equal(const _hashtable_t* cpt_first, const _hashtable_t* cpt_second)
{
    return (_hashtable_greater(cpt_first, cpt_second) || _hashtable_equal(cpt_first, cpt_second)) ? true : false;
}