BloombergLP::bslstl::operator!=

Return true if the specified lhs and rhs objects do not have the same value, and false otherwise. Two HashTable objects do not have the same value if they do not have the same number of elements, or if, for any key found in lhs, the subset of elements having that key (according to the hash-table's comparator) in lhs either (1) does not have the same number of elements as the subset of elements having that key in rhs, or (2) there exists no permutation of the lhs subset where each element compares equal (using operator==) to the corresponding element in the rhs subset. The behavior is undefined unless both the hasher and comparator of lhs and rhs return the same value for every valid input. Note that this method requires that the ValueType of the parameterized KEY_CONFIG be "equality-comparable" (see {Requirements on KEY_CONFIG}).

Synopsis

Declared in <bslstl_hashtable.h>

template<
    class KEY_CONFIG,
    class HASHER,
    class COMPARATOR,
    class ALLOCATOR>
bool
operator!=(
    HashTable<KEY_CONFIG, HASHER, COMPARATOR, ALLOCATOR> const& lhs,
    HashTable<KEY_CONFIG, HASHER, COMPARATOR, ALLOCATOR> const& rhs);