[#BloombergLP-bslstl-operator_eq-0c1]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::operator&equals;&equals;
:relfileprefix: ../../
:mrdocs:

Equality operators

== Synopses

Declared in `&lt;bslstl&lowbar;bidirectionaliterator&period;h&gt;`

Return `true` if `lhs` and `rhs` have the same value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class T1,
    class T2,
    class ITER&lowbar;IMP,
    class TAG&lowbar;TYPE&gt;
bool
xref:BloombergLP/bslstl/operator_eq-066.adoc[operator&equals;&equals;](
    xref:BloombergLP/bslstl/ForwardIterator.adoc[ForwardIterator&lt;T1, ITER&lowbar;IMP, TAG&lowbar;TYPE&gt;] const& lhs,
    xref:BloombergLP/bslstl/ForwardIterator.adoc[ForwardIterator&lt;T2, ITER&lowbar;IMP, TAG&lowbar;TYPE&gt;] const& rhs);
----

[.small]#xref:BloombergLP/bslstl/operator_eq-066.adoc[_» more&period;&period;&period;_]#

Return whether two bidirectional iterators refer to the same position&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class T1,
    class T2,
    class ITER&lowbar;IMP,
    class TAG&lowbar;TYPE&gt;
bool
xref:BloombergLP/bslstl/operator_eq-08.adoc[operator&equals;&equals;](
    xref:BloombergLP/bslstl/BidirectionalIterator.adoc[BidirectionalIterator&lt;T1, ITER&lowbar;IMP, TAG&lowbar;TYPE&gt;] const& lhs,
    xref:BloombergLP/bslstl/BidirectionalIterator.adoc[BidirectionalIterator&lt;T2, ITER&lowbar;IMP, TAG&lowbar;TYPE&gt;] const& rhs);
----

[.small]#xref:BloombergLP/bslstl/operator_eq-08.adoc[_» more&period;&period;&period;_]#

Return `true` if `lhs` and `rhs` have the same value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class T1,
    class T2,
    class ITER&lowbar;IMP,
    class TAG&lowbar;TYPE&gt;
bool
xref:BloombergLP/bslstl/operator_eq-0c7.adoc[operator&equals;&equals;](
    xref:BloombergLP/bslstl/RandomAccessIterator.adoc[RandomAccessIterator&lt;T1, ITER&lowbar;IMP, TAG&lowbar;TYPE&gt;] const& lhs,
    xref:BloombergLP/bslstl/RandomAccessIterator.adoc[RandomAccessIterator&lt;T2, ITER&lowbar;IMP, TAG&lowbar;TYPE&gt;] const& rhs);
----

[.small]#xref:BloombergLP/bslstl/operator_eq-0c7.adoc[_» more&period;&period;&period;_]#

Return whether the specified iterators refer to the same tree node&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
xref:BloombergLP/bslstl/operator_eq-02.adoc[operator&equals;&equals;](
    xref:BloombergLP/bslstl/TreeIterator.adoc[TreeIterator&lt;VALUE1, NODEPTR, DIFF&gt;] const& lhs,
    xref:BloombergLP/bslstl/TreeIterator.adoc[TreeIterator&lt;VALUE2, NODEPTR, DIFF&gt;] const& rhs);
----

[.small]#xref:BloombergLP/bslstl/operator_eq-02.adoc[_» more&period;&period;&period;_]#

Return `true` if `lhs` and `rhs` refer to the same position&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class VALUE1,
    class VALUE2,
    class NODEPTR,
    class DIFF&gt;
bool
xref:BloombergLP/bslstl/operator_eq-0c0.adoc[operator&equals;&equals;](
    xref:BloombergLP/bslstl/TreeIterator.adoc[TreeIterator&lt;VALUE1, NODEPTR, DIFF&gt;] const& lhs,
    xref:BloombergLP/bslstl/TreeIterator.adoc[TreeIterator&lt;VALUE2, NODEPTR, DIFF&gt;] const& rhs);
----

[.small]#xref:BloombergLP/bslstl/operator_eq-0c0.adoc[_» more&period;&period;&period;_]#

Return `true` if `lhs` and `rhs` have the same value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class KEY&lowbar;CONFIG,
    class HASHER,
    class COMPARATOR,
    class ALLOCATOR&gt;
bool
xref:BloombergLP/bslstl/operator_eq-0f.adoc[operator&equals;&equals;](
    xref:BloombergLP/bslstl/HashTable.adoc[HashTable&lt;KEY&lowbar;CONFIG, HASHER, COMPARATOR, ALLOCATOR&gt;] const& lhs,
    xref:BloombergLP/bslstl/HashTable.adoc[HashTable&lt;KEY&lowbar;CONFIG, HASHER, COMPARATOR, ALLOCATOR&gt;] const& rhs);
----

[.small]#xref:BloombergLP/bslstl/operator_eq-0f.adoc[_» more&period;&period;&period;_]#

Return `true` if the specified `lhs` and `rhs` have the same value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class VALUE&lowbar;TYPE,
    class DIFFERENCE&lowbar;TYPE&gt;
bool
xref:BloombergLP/bslstl/operator_eq-0b.adoc[operator&equals;&equals;](
    xref:BloombergLP/bslstl/HashTableBucketIterator.adoc[HashTableBucketIterator&lt;VALUE&lowbar;TYPE, DIFFERENCE&lowbar;TYPE&gt;] const& lhs,
    xref:BloombergLP/bslstl/HashTableBucketIterator.adoc[HashTableBucketIterator&lt;VALUE&lowbar;TYPE, DIFFERENCE&lowbar;TYPE&gt;] const& rhs);
----

[.small]#xref:BloombergLP/bslstl/operator_eq-0b.adoc[_» more&period;&period;&period;_]#

Return `true` if the specified `lhs` and `rhs` have the same value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class VALUE&lowbar;TYPE,
    class DIFFERENCE&lowbar;TYPE&gt;
bool
xref:BloombergLP/bslstl/operator_eq-0e.adoc[operator&equals;&equals;](
    xref:BloombergLP/bslstl/HashTableBucketIterator.adoc[HashTableBucketIterator&lt;VALUE&lowbar;TYPE, DIFFERENCE&lowbar;TYPE&gt;] const& lhs,
    xref:BloombergLP/bslstl/HashTableBucketIterator.adoc[HashTableBucketIterator&lt;VALUE&lowbar;TYPE const, DIFFERENCE&lowbar;TYPE&gt;] const& rhs);
----

[.small]#xref:BloombergLP/bslstl/operator_eq-0e.adoc[_» more&period;&period;&period;_]#

Return `true` if the specified `lhs` and `rhs` have the same value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class VALUE&lowbar;TYPE,
    class DIFFERENCE&lowbar;TYPE&gt;
bool
xref:BloombergLP/bslstl/operator_eq-04e.adoc[operator&equals;&equals;](
    xref:BloombergLP/bslstl/HashTableBucketIterator.adoc[HashTableBucketIterator&lt;VALUE&lowbar;TYPE const, DIFFERENCE&lowbar;TYPE&gt;] const& lhs,
    xref:BloombergLP/bslstl/HashTableBucketIterator.adoc[HashTableBucketIterator&lt;VALUE&lowbar;TYPE, DIFFERENCE&lowbar;TYPE&gt;] const& rhs);
----

[.small]#xref:BloombergLP/bslstl/operator_eq-04e.adoc[_» more&period;&period;&period;_]#

Return `true` if the specified `lhs` and `rhs` have the same value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class VALUE&lowbar;TYPE,
    class DIFFERENCE&lowbar;TYPE&gt;
bool
xref:BloombergLP/bslstl/operator_eq-040.adoc[operator&equals;&equals;](
    xref:BloombergLP/bslstl/HashTableBucketIterator.adoc[HashTableBucketIterator&lt;VALUE&lowbar;TYPE const, DIFFERENCE&lowbar;TYPE&gt;] const& lhs,
    xref:BloombergLP/bslstl/HashTableBucketIterator.adoc[HashTableBucketIterator&lt;VALUE&lowbar;TYPE const, DIFFERENCE&lowbar;TYPE&gt;] const& rhs);
----

[.small]#xref:BloombergLP/bslstl/operator_eq-040.adoc[_» more&period;&period;&period;_]#

Return `true` if `lhs` and `rhs` have the same value&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class VALUE&lowbar;TYPE,
    class DIFFERENCE&lowbar;TYPE&gt;
bool
xref:BloombergLP/bslstl/operator_eq-09.adoc[operator&equals;&equals;](
    xref:BloombergLP/bslstl/HashTableIterator.adoc[HashTableIterator&lt;VALUE&lowbar;TYPE, DIFFERENCE&lowbar;TYPE&gt;] const& lhs,
    xref:BloombergLP/bslstl/HashTableIterator.adoc[HashTableIterator&lt;VALUE&lowbar;TYPE, DIFFERENCE&lowbar;TYPE&gt;] const& rhs);
----

[.small]#xref:BloombergLP/bslstl/operator_eq-09.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class VALUE&lowbar;TYPE,
    class DIFFERENCE&lowbar;TYPE&gt;
bool
xref:BloombergLP/bslstl/operator_eq-03.adoc[operator&equals;&equals;](
    xref:BloombergLP/bslstl/HashTableIterator.adoc[HashTableIterator&lt;VALUE&lowbar;TYPE, DIFFERENCE&lowbar;TYPE&gt;] const& lhs,
    xref:BloombergLP/bslstl/HashTableIterator.adoc[HashTableIterator&lt;VALUE&lowbar;TYPE const, DIFFERENCE&lowbar;TYPE&gt;] const& rhs);
----

[.small]#xref:BloombergLP/bslstl/operator_eq-03.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class VALUE&lowbar;TYPE,
    class DIFFERENCE&lowbar;TYPE&gt;
bool
xref:BloombergLP/bslstl/operator_eq-06e.adoc[operator&equals;&equals;](
    xref:BloombergLP/bslstl/HashTableIterator.adoc[HashTableIterator&lt;VALUE&lowbar;TYPE const, DIFFERENCE&lowbar;TYPE&gt;] const& lhs,
    xref:BloombergLP/bslstl/HashTableIterator.adoc[HashTableIterator&lt;VALUE&lowbar;TYPE, DIFFERENCE&lowbar;TYPE&gt;] const& rhs);
----

[.small]#xref:BloombergLP/bslstl/operator_eq-06e.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class VALUE&lowbar;TYPE,
    class DIFFERENCE&lowbar;TYPE&gt;
bool
xref:BloombergLP/bslstl/operator_eq-07.adoc[operator&equals;&equals;](
    xref:BloombergLP/bslstl/HashTableIterator.adoc[HashTableIterator&lt;VALUE&lowbar;TYPE const, DIFFERENCE&lowbar;TYPE&gt;] const& lhs,
    xref:BloombergLP/bslstl/HashTableIterator.adoc[HashTableIterator&lt;VALUE&lowbar;TYPE const, DIFFERENCE&lowbar;TYPE&gt;] const& rhs);
----

[.small]#xref:BloombergLP/bslstl/operator_eq-07.adoc[_» more&period;&period;&period;_]#

== Return Value

* `true` if `lhs` and `rhs` have the same value, and `false` otherwise
* `true` if the iterators have the same value, and `false` otherwise
* `true` if the iterators refer to the same tree node, and `false` otherwise
* `true` if the hash tables compare equal
* `true` if the iterators have the same value

== Parameters

[cols="1,4"]
|===
| Name| Description
| *lhs*
| first iterator to compare
| *rhs*
| second iterator to compare
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
