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

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

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class KEY&lowbar;CONFIG,
    class HASHER,
    class COMPARATOR,
    class ALLOCATOR&gt;
bool
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);
----

== Description

Return `true` if the specified `lhs` and `rhs` objects have the same value, and `false` otherwise&period; 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&apos;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&equals;&equals;`) to the corresponding element in the `rhs` subset&period; The behavior is undefined unless both the `hasher` and `comparator` of `lhs` and `rhs` return the same value for every valid input&period; Note that this method requires that the `ValueType` of the parameterized `KEY&lowbar;CONFIG` be &quot;equality&hyphen;comparable&quot; (see &lcub;Requirements on `KEY&lowbar;CONFIG`&rcub;)&period;

== Return Value

`true` if the hash tables compare equal

== Parameters

[cols="1,4"]
|===
| Name| Description
| *lhs*
| left&hyphen;hand hash table to compare
| *rhs*
| right&hyphen;hand hash table to compare
|===


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