BloombergLP::bslstl::operator!=

Inequality operators

Synopses

Declared in <bslstl_bidirectionaliterator.h>

Return true if the specified lhs iterator does not have the same value as the specified rhs iterator, and false otherwise. Two iterators do not have the same value if (1) they do not refer to the same element and (2) both do not have the past-the-end iterator value for the underlying sequence. The behavior is undefined unless both iterators refer to the same underlying sequence.

template<
    class T1,
    class T2,
    class ITER_IMP,
    class TAG_TYPE>
bool
operator!=(
    ForwardIterator<T1, ITER_IMP, TAG_TYPE> const& lhs,
    ForwardIterator<T2, ITER_IMP, TAG_TYPE> const& rhs);
» more...

Return true if the specified lhs iterator does not have the same value as the specified rhs iterator, and false otherwise. Two iterators do not have the same value if (1) they do not refer to the same element and (2) both do not have the past-the-end iterator value for the underlying sequence. The behavior is undefined unless both iterators refer to the same underlying sequence.

template<
    class T1,
    class T2,
    class ITER_IMP,
    class TAG_TYPE>
bool
operator!=(
    BidirectionalIterator<T1, ITER_IMP, TAG_TYPE> const& lhs,
    BidirectionalIterator<T2, ITER_IMP, TAG_TYPE> const& rhs);
» more...

Return true if the specified lhs iterator does not have the same value as the specified rhs iterator, and false otherwise. Two iterators do not have the same value if (1) they do not refer to the same element and (2) both do not have the past-the-end iterator value for the underlying sequence. The behavior is undefined unless both iterators refer to the same underlying sequence.

template<
    class T1,
    class T2,
    class ITER_IMP,
    class TAG_TYPE>
bool
operator!=(
    RandomAccessIterator<T1, ITER_IMP, TAG_TYPE> const& lhs,
    RandomAccessIterator<T2, ITER_IMP, TAG_TYPE> const& rhs);
» more...

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}).

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);
» more...

Return true if the specified lhs and the specified rhs iterators do not have the same value and false otherwise. Two iterators do not have the same value if they refer to the different elements in the same hash table, or if either (but not both) of the iterators are positioned after the end of a hash table bucket.

template<
    class VALUE_TYPE,
    class DIFFERENCE_TYPE>
bool
operator!=(
    HashTableBucketIterator<VALUE_TYPE, DIFFERENCE_TYPE> const& lhs,
    HashTableBucketIterator<VALUE_TYPE, DIFFERENCE_TYPE> const& rhs);
» more...

Same as the preceding overload.

template<
    class VALUE_TYPE,
    class DIFFERENCE_TYPE>
bool
operator!=(
    HashTableBucketIterator<VALUE_TYPE, DIFFERENCE_TYPE> const& lhs,
    HashTableBucketIterator<VALUE_TYPE const, DIFFERENCE_TYPE> const& rhs);
» more...

Same as the preceding overload.

template<
    class VALUE_TYPE,
    class DIFFERENCE_TYPE>
bool
operator!=(
    HashTableBucketIterator<VALUE_TYPE const, DIFFERENCE_TYPE> const& lhs,
    HashTableBucketIterator<VALUE_TYPE, DIFFERENCE_TYPE> const& rhs);
» more...

Same as the preceding overload.

template<
    class VALUE_TYPE,
    class DIFFERENCE_TYPE>
bool
operator!=(
    HashTableBucketIterator<VALUE_TYPE const, DIFFERENCE_TYPE> const& lhs,
    HashTableBucketIterator<VALUE_TYPE const, DIFFERENCE_TYPE> const& rhs);
» more...

Return true if the specified lhs and the specified rhs iterators do not have the same value and false otherwise. Two iterators do not have the same value if they refer to the different nodes in the same list, or if either (but not both) of the iterators are at the past-the-end position of the tree.

template<
    class VALUE_TYPE,
    class DIFFERENCE_TYPE>
bool
operator!=(
    HashTableIterator<VALUE_TYPE, DIFFERENCE_TYPE> const& lhs,
    HashTableIterator<VALUE_TYPE, DIFFERENCE_TYPE> const& rhs);
» more...

Same as the preceding overload.

template<
    class VALUE_TYPE,
    class DIFFERENCE_TYPE>
bool
operator!=(
    HashTableIterator<VALUE_TYPE, DIFFERENCE_TYPE> const& lhs,
    HashTableIterator<VALUE_TYPE const, DIFFERENCE_TYPE> const& rhs);
» more...

Same as the preceding overload.

template<
    class VALUE_TYPE,
    class DIFFERENCE_TYPE>
bool
operator!=(
    HashTableIterator<VALUE_TYPE const, DIFFERENCE_TYPE> const& lhs,
    HashTableIterator<VALUE_TYPE, DIFFERENCE_TYPE> const& rhs);
» more...

Same as the preceding overload.

template<
    class VALUE_TYPE,
    class DIFFERENCE_TYPE>
bool
operator!=(
    HashTableIterator<VALUE_TYPE const, DIFFERENCE_TYPE> const& lhs,
    HashTableIterator<VALUE_TYPE const, DIFFERENCE_TYPE> const& rhs);
» more...