[#BloombergLP-bslstl-operator_eq-0c1] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::operator== :relfileprefix: ../../ :mrdocs: Equality operators == Synopses Declared in `<bslstl_bidirectionaliterator.h>` Return `true` if the specified `lhs` iterator has the same value as the specified `rhs` iterator, and `false` otherwise. Two iterators have the same value if they refer to the same element, or both have the past‐the‐ end value for the underlying sequence. The behavior is undefined unless both iterators refer to the same underlying sequence. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class T1, class T2, class ITER_IMP, class TAG_TYPE> bool xref:BloombergLP/bslstl/operator_eq-066.adoc[operator==]( xref:BloombergLP/bslstl/ForwardIterator.adoc[ForwardIterator<T1, ITER_IMP, TAG_TYPE>] const& lhs, xref:BloombergLP/bslstl/ForwardIterator.adoc[ForwardIterator<T2, ITER_IMP, TAG_TYPE>] const& rhs); ---- [.small]#xref:BloombergLP/bslstl/operator_eq-066.adoc[_» more..._]# Return `true` if the specified `lhs` iterator has the same value as the specified `rhs` iterator, and `false` otherwise. Two iterators have the same value if they refer to the same element, or both have the past‐the‐ end value for the underlying sequence. The behavior is undefined unless both iterators refer to the same underlying sequence. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class T1, class T2, class ITER_IMP, class TAG_TYPE> bool xref:BloombergLP/bslstl/operator_eq-08.adoc[operator==]( xref:BloombergLP/bslstl/BidirectionalIterator.adoc[BidirectionalIterator<T1, ITER_IMP, TAG_TYPE>] const& lhs, xref:BloombergLP/bslstl/BidirectionalIterator.adoc[BidirectionalIterator<T2, ITER_IMP, TAG_TYPE>] const& rhs); ---- [.small]#xref:BloombergLP/bslstl/operator_eq-08.adoc[_» more..._]# Return `true` if the specified `lhs` iterator has the same value as the specified `rhs` iterator, and `false` otherwise. Two iterators have the same value if they refer to the same element, or both have the past‐the‐ end value for the underlying sequence. The behavior is undefined unless both iterators refer to the same underlying sequence. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class T1, class T2, class ITER_IMP, class TAG_TYPE> bool xref:BloombergLP/bslstl/operator_eq-0c7.adoc[operator==]( xref:BloombergLP/bslstl/RandomAccessIterator.adoc[RandomAccessIterator<T1, ITER_IMP, TAG_TYPE>] const& lhs, xref:BloombergLP/bslstl/RandomAccessIterator.adoc[RandomAccessIterator<T2, ITER_IMP, TAG_TYPE>] const& rhs); ---- [.small]#xref:BloombergLP/bslstl/operator_eq-0c7.adoc[_» more..._]# Return whether the specified iterators refer to the same tree node. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bslstl/operator_eq-02.adoc[operator==]( xref:BloombergLP/bslstl/TreeIterator.adoc[TreeIterator<VALUE1, NODEPTR, DIFF>] const&, xref:BloombergLP/bslstl/TreeIterator.adoc[TreeIterator<VALUE2, NODEPTR, DIFF>] const&); ---- [.small]#xref:BloombergLP/bslstl/operator_eq-02.adoc[_» more..._]# Return `true` if the specified `lhs` and the specified `rhs` iterators have the same value and `false` otherwise. Two iterators have the same value if they refer to the same position in the same tree, or if both iterators are at an invalid position in the tree (i.e., the `end` of the tree, or the default constructed value). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class VALUE1, class VALUE2, class NODEPTR, class DIFF> bool xref:BloombergLP/bslstl/operator_eq-0c0.adoc[operator==]( xref:BloombergLP/bslstl/TreeIterator.adoc[TreeIterator<VALUE1, NODEPTR, DIFF>] const& lhs, xref:BloombergLP/bslstl/TreeIterator.adoc[TreeIterator<VALUE2, NODEPTR, DIFF>] const& rhs); ---- [.small]#xref:BloombergLP/bslstl/operator_eq-0c0.adoc[_» more..._]# Return `true` if the specified `lhs` and `rhs` objects have the same value, and `false` otherwise. Two `HashTable` objects have the same value if they have the same number of elements, and for every subset of elements in `lhs` having keys that compare equal (according to that hash table's `comparator`), a corresponding subset of elements exists in `rhs`, having the same number of elements, where, for some permutation of the `lhs` subset, every element in that subset 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`}). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class KEY_CONFIG, class HASHER, class COMPARATOR, class ALLOCATOR> bool xref:BloombergLP/bslstl/operator_eq-0f.adoc[operator==]( xref:BloombergLP/bslstl/HashTable-06.adoc[HashTable<KEY_CONFIG, HASHER, COMPARATOR, ALLOCATOR>] const& lhs, xref:BloombergLP/bslstl/HashTable-06.adoc[HashTable<KEY_CONFIG, HASHER, COMPARATOR, ALLOCATOR>] const& rhs); ---- [.small]#xref:BloombergLP/bslstl/operator_eq-0f.adoc[_» more..._]# Return `true` if the specified `lhs` and the specified `rhs` iterators have the same value and `false` otherwise. Two iterators have the same value if they refer to the same element in the same hash table, or if both iterators are positioned after the end of a hash table bucket. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class VALUE_TYPE, class DIFFERENCE_TYPE> bool xref:BloombergLP/bslstl/operator_eq-0b.adoc[operator==]( xref:BloombergLP/bslstl/HashTableBucketIterator.adoc[HashTableBucketIterator<VALUE_TYPE, DIFFERENCE_TYPE>] const& lhs, xref:BloombergLP/bslstl/HashTableBucketIterator.adoc[HashTableBucketIterator<VALUE_TYPE, DIFFERENCE_TYPE>] const& rhs); ---- [.small]#xref:BloombergLP/bslstl/operator_eq-0b.adoc[_» more..._]# Same as the preceding overload. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class VALUE_TYPE, class DIFFERENCE_TYPE> bool xref:BloombergLP/bslstl/operator_eq-0e.adoc[operator==]( xref:BloombergLP/bslstl/HashTableBucketIterator.adoc[HashTableBucketIterator<VALUE_TYPE, DIFFERENCE_TYPE>] const& lhs, xref:BloombergLP/bslstl/HashTableBucketIterator.adoc[HashTableBucketIterator<VALUE_TYPE const, DIFFERENCE_TYPE>] const& rhs); ---- [.small]#xref:BloombergLP/bslstl/operator_eq-0e.adoc[_» more..._]# Same as the preceding overload. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class VALUE_TYPE, class DIFFERENCE_TYPE> bool xref:BloombergLP/bslstl/operator_eq-04e.adoc[operator==]( xref:BloombergLP/bslstl/HashTableBucketIterator.adoc[HashTableBucketIterator<VALUE_TYPE const, DIFFERENCE_TYPE>] const& lhs, xref:BloombergLP/bslstl/HashTableBucketIterator.adoc[HashTableBucketIterator<VALUE_TYPE, DIFFERENCE_TYPE>] const& rhs); ---- [.small]#xref:BloombergLP/bslstl/operator_eq-04e.adoc[_» more..._]# Same as the preceding overload. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class VALUE_TYPE, class DIFFERENCE_TYPE> bool xref:BloombergLP/bslstl/operator_eq-040.adoc[operator==]( xref:BloombergLP/bslstl/HashTableBucketIterator.adoc[HashTableBucketIterator<VALUE_TYPE const, DIFFERENCE_TYPE>] const& lhs, xref:BloombergLP/bslstl/HashTableBucketIterator.adoc[HashTableBucketIterator<VALUE_TYPE const, DIFFERENCE_TYPE>] const& rhs); ---- [.small]#xref:BloombergLP/bslstl/operator_eq-040.adoc[_» more..._]# Return `true` if the specified `lhs` and the specified `rhs` iterators have the same value and `false` otherwise. Two iterators have the same value if they refer to the same node in the same list, or if both iterators are at the past‐the‐end position of the tree. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class VALUE_TYPE, class DIFFERENCE_TYPE> bool xref:BloombergLP/bslstl/operator_eq-09.adoc[operator==]( xref:BloombergLP/bslstl/HashTableIterator.adoc[HashTableIterator<VALUE_TYPE, DIFFERENCE_TYPE>] const& lhs, xref:BloombergLP/bslstl/HashTableIterator.adoc[HashTableIterator<VALUE_TYPE, DIFFERENCE_TYPE>] const& rhs); ---- [.small]#xref:BloombergLP/bslstl/operator_eq-09.adoc[_» more..._]# Same as the preceding overload. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class VALUE_TYPE, class DIFFERENCE_TYPE> bool xref:BloombergLP/bslstl/operator_eq-03.adoc[operator==]( xref:BloombergLP/bslstl/HashTableIterator.adoc[HashTableIterator<VALUE_TYPE, DIFFERENCE_TYPE>] const& lhs, xref:BloombergLP/bslstl/HashTableIterator.adoc[HashTableIterator<VALUE_TYPE const, DIFFERENCE_TYPE>] const& rhs); ---- [.small]#xref:BloombergLP/bslstl/operator_eq-03.adoc[_» more..._]# Same as the preceding overload. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class VALUE_TYPE, class DIFFERENCE_TYPE> bool xref:BloombergLP/bslstl/operator_eq-06e.adoc[operator==]( xref:BloombergLP/bslstl/HashTableIterator.adoc[HashTableIterator<VALUE_TYPE const, DIFFERENCE_TYPE>] const& lhs, xref:BloombergLP/bslstl/HashTableIterator.adoc[HashTableIterator<VALUE_TYPE, DIFFERENCE_TYPE>] const& rhs); ---- [.small]#xref:BloombergLP/bslstl/operator_eq-06e.adoc[_» more..._]# Same as the preceding overload. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class VALUE_TYPE, class DIFFERENCE_TYPE> bool xref:BloombergLP/bslstl/operator_eq-07.adoc[operator==]( xref:BloombergLP/bslstl/HashTableIterator.adoc[HashTableIterator<VALUE_TYPE const, DIFFERENCE_TYPE>] const& lhs, xref:BloombergLP/bslstl/HashTableIterator.adoc[HashTableIterator<VALUE_TYPE const, DIFFERENCE_TYPE>] const& rhs); ---- [.small]#xref:BloombergLP/bslstl/operator_eq-07.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#